block by emeeks e484f2b1b5ba6c4742f6

Automated Convex Hulls - d3.carto

Full Screen

Automated convex hull layers in d3.carto.map.

map.createHullLayer takes a d3.carto.layer and an accessor function that identifies the categorical attributes of the features in that carto layer from which to create hulls. In this example, hulls are created based on the “ccode” attribute of a feature.

index.html

d3map.css