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

Option to encode vector tiles into pbfs #28

Closed
mourner opened this issue Mar 14, 2015 · 4 comments
Closed

Option to encode vector tiles into pbfs #28

mourner opened this issue Mar 14, 2015 · 4 comments

Comments

@mourner
Copy link
Member

mourner commented Mar 14, 2015

Related: mapbox/vector-tile-js#25

@vespakoen
Copy link

👍 Any hints on how the json should be turned into the pbf format?
Do you know if it is more compilated than string encoding the json return from tileIndex.getTile and then pass it along to pbf's writeStringField(tag, val) ?
Perhaps you can share the link to the code where it parses the pbf in mapbox-gl-js?

EDIT: I have seen the source of https://github.com/mapbox/vector-tile-js and realised that it is a lot more complicated.

Hope this feature will land soon so I can convert my geojson into vector tiles and load them on mapbox-gl-native =)

Thanks!

@anandthakker
Copy link
Contributor

A first cut at this is done here: https://github.com/anandthakker/vt-pbf

@chriswhong
Copy link

Hi all, I just put this together, it builds a static tile pyramid of vector tiles from a geojson file, using geojson-vt and vt-pbf: https://github.com/NYCPlanning/geojson2mvt

@mourner
Copy link
Member Author

mourner commented Dec 1, 2017

Closing here — I think having the tool for that in a separate repo makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants