-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add filter support for $id keys #2888
Conversation
@mcwhittemore brought to my attention the fact that once mapbox/geojson-vt#60 is integrated, we'll face an additional issue. For GeoJSON features that use string IDs, there's a GeoJSON/VT compatibility issue similar to #2434. GeoJSON allows string or numeric IDs, while VTs support only unsigned integer IDs. String values in GeoJSON feature IDs will not survive the round trip through a Vector Tile PBF which we use to transfer data from the worker to main thread. |
@jfirebaugh could we replace the use of vt-pbf with geobuf? It supports the full GeoJSON spec and roundtrips exactly. |
@mourner For GeoJSON sources, yes, we could use geobuf rather than vt-pbf. Then the question is what do we do with vector tile sources?
|
@jfirebaugh maybe transfer a flat feature collection, but also send a JSON of the structure? Maybe like this: |
I am closing this PR because it has been inactive for a long time. The branch isn't going anywhere so please keep working on this feature and re-open the PR when it is ready! Let me know if you have any questions. |
I'm picking this up tomorrow. |
This release adds support for `$id` keys: mapbox/mapbox-gl-style-spec#391
This release adds a public "id" property to VectorTileFeature: mapbox/vector-tile-js#43
@lucaswoj good to merge? |
@mourner Looks good to me! |
Did #2888 (comment) (supporting non-numeric IDs) get solved, or is there an issue for the tail work there? |
Ah, #2716 tracks the tail work. |
mapbox/mapbox-gl-style-spec#391
Before merging, we need to following upstream changes to be integrated and released:
id
should be a public property