All examples By author By category About

emeeks

Canvas Styling (Transform) - d3.carto

Canvas element styling with d3.carto.map does not use d3.selectAll like SVG element styling because these aren't SVG elements.

This relies on using cartoLayer.markerColor() and cartoLayer.markerSize() and setting them to function based on the data. If you don't set markerColor, then it will rely on CSS styling of the associated class.

This example is also available as a globe.