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

Converting to vector tile #66

Closed
jczaplew opened this issue Nov 3, 2017 · 1 comment
Closed

Converting to vector tile #66

jczaplew opened this issue Nov 3, 2017 · 1 comment

Comments

@jczaplew
Copy link

jczaplew commented Nov 3, 2017

(Apologies if this issue is better suited for geojson-vt. I was torn on where to post and will happily transfer it if needed)

getTile returns an object that can be passed to geojson-vt, and appears to be the intermediate projected JSON produced by the convert method of geojson-vt. However, I don't see any methods for creating a vector tile using geojson-vt with this object. Is there an API that is not documented for this operation?

Of course, one could also call getClusters instead, and pass that resultant GeoJSON to geojson-vt and call getTile on that index instead. However, it seems like it would be faster to user supercluster's getTile method instead.

Thanks!

@jczaplew
Copy link
Author

jczaplew commented Nov 4, 2017

Figured it out. The result of getTile isn't meant to be passed to geojson-vt - it is already a vector tile that can be serialized by something like vt-pbf. Sorry about that!

@jczaplew jczaplew closed this as completed Nov 4, 2017
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

No branches or pull requests

1 participant