block by emeeks 37c28b6ff0e01f69b4cd

d3.carto.layer.alias - d3.carto.map

Full Screen

Using d3.carto.layer with d3.carto.map.

Each d3.carto.layer is defined and then added to the map using map.addCartoLayer. You can access the added layers using map.layers(). Each layer fires a “load” event once successfully added to the map.

This example uses d3.carto.layer.layerType() aliases like d3.carto.layer.tile() and d3.carto.layer.topojson().

index.html

d3map.css

example.css