Add an option to calculate feature density as a feature attribute

This commit is contained in:
Eric Fischer
2016-05-27 16:25:40 -07:00
parent 4030cc7c58
commit 692112ec3a
7 changed files with 58 additions and 6 deletions
+1
View File
@@ -118,6 +118,7 @@ resolution is obtained than by using a smaller _maxzoom_ or _detail_.
* -ao or --reorder: Reorder features to put ones with the same properties in sequence, to try to get them to coalesce
* -al or --drop-lines: Let "dot" dropping at lower zooms apply to lines too
* -ap or --drop-polygons: Let "dot" dropping at lower zooms apply to polygons too
* -ag or --calculate-feature-density: Add a new attribute, `tippecanoe_feature_density`, to each feature, to record how densely features are spaced in that area of the tile. You can use this attribute in the style to produce a glowing effect where points are densely packed. It can range from 0 in the sparsest areas to 255 in the densest.
### Doing less