All examples By author By category About

emeeks

Automated Convex Hulls - d3.carto

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.