-
Notifications
You must be signed in to change notification settings - Fork 433
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
EXPERIMENTAL support for arbitrary JSON objects as feature attributes #303
base: master
Are you sure you want to change the base?
Conversation
de2a4b8
to
37a20a0
Compare
Is this something that you're considering moving out of experimental and into master? I feel like this is super useful, and would imagine the community would find it handy as well. It would give the tile data a lot of flexibility - both on the client and in the stylesheet. Thanks. |
Unfortunately this is not the format for compound attributes that has made it into the work for version 3 of the vector tile spec, so this particular branch is basically a dead end. |
@ericfischer Any sense of when/whether something like this will be added to Tippecanoe soon? It looks like the option of parsing the tiles in browser was shot down by the MB team and it looks like there is an accepted commit to implement an 'in' expression. Unfortunately, without a way to encode arrays in the feature properties in Vector tiles, the 'in' expression is essentially worthless. I know this is a large project but wanted to see if there is any movement. |
There is no movement that I am aware of. Vector tile spec version 3 may yet be a thing (probably in the form in https://github.com/mapbox/vector-tile-spec/tree/v3.0-development/3.0, not the one that this PR writes), but it requires a whole lot of projects to move simultaneously, most of which have other priorities. I don't know where GL-JS is getting these features that have arrays for attributes, other than maybe from GeoJSON. |
Prototype for mapbox/vector-tile-spec#75
To test:
and note the
properties
in the output that contain JSON objects rather than just stringified representations of them.