You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks, @andrewharvey! Open to feedback about whether to close ticket then and re-open a docs-focused ticket that details how to create id values for features to use with feature states.
ryanbaumann
changed the title
Automatically generate feature id values for geojson sources
Automatically generate feature id values for geojson & cluster sources
Jun 24, 2018
Motivation
Examples using map.setFeatureState() like this https://www.mapbox.com/mapbox-gl-js/example/hover-styles/ require that a user include an integer parent
id
value in their geojson or vector tile source.Design Alternatives
id
requirement to use featureStatesDesign
Automatically generate parent a
id
value for a geojson source in geojson-vt, so that all geojson source features support featureStates.Automatically generate a
parent
id forclustered
geojson datasourcesNot sure if a similar approach is possible for vector tile sources.
Mock-Up
Geojson-vt auto-generates feature
id
values for geojson and cluster sources.Concepts
id
valuesThe text was updated successfully, but these errors were encountered: