All examples By author By category About

emeeks

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

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().