-
Notifications
You must be signed in to change notification settings - Fork 429
Closed
Labels
Description
Feature Request
Add a Tippecanoe option to automatically generate an integer unique feature id. --generate-id.
Ideal scenario
- If a geojson source contains an
idvalue, use the specifiedidvalue in the tiles generated in Tippecanoe - If a geojson source does not contain an
idvalue, automatically generate one by default. - Expose a Tippecanoe option to disable automatic feature
idgeneration if it doesn't exist - Expose an option to
promotea property value from a feature to anidvalue, just likegeojson-vtallows Åuto-generation and promotion options for Feature Ids geojson-vt#109 cc/ @asheemmamoowala
Use case
FeatureStates in Mapbox GL require feature id values to function. Currently, Tippecanoe will not generate feature ID values for a dataset, a user must create feature id values in their geojson data source before passing to Tippecanoe.
cc/ @ericfischer
Reference: mapbox/mapbox-gl-js#6974