block by emeeks e6f72fbca42e77be0eb3

Canvas Styling (Transform) - d3.carto

Full Screen

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.

index.html

d3map.css