Skip to content
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

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

e-n-f
Copy link
Contributor

@e-n-f e-n-f commented Sep 28, 2016

Prototype for mapbox/vector-tile-spec#75

To test:

git checkout object-attributes
make clean
make -j
./tippecanoe -z0 -f -o compound.mbtiles tests/object/in.json
./tippecanoe-decode compound.mbtiles

and note the properties in the output that contain JSON objects rather than just stringified representations of them.

@e-n-f e-n-f mentioned this pull request Apr 3, 2018
@clarkcorey
Copy link

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.

@e-n-f
Copy link
Contributor Author

e-n-f commented Jan 23, 2019

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.

@stdmn
Copy link

stdmn commented Nov 11, 2019

@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.

@e-n-f
Copy link
Contributor Author

e-n-f commented Nov 11, 2019

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.

ewsterrenburg pushed a commit to ewsterrenburg/tippecanoe that referenced this pull request Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants