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

Support exporting mbtiles interactivity layer #7

Closed
onyxfish opened this issue Mar 3, 2011 · 2 comments
Closed

Support exporting mbtiles interactivity layer #7

onyxfish opened this issue Mar 3, 2011 · 2 comments
Labels

Comments

@onyxfish
Copy link

onyxfish commented Mar 3, 2011

We need this to be able to host our tiles on S3 and still take advantage of the interactivity layer.

@springmeyer
Copy link

Just added a first cut at dumping out this data. Basically when an mbtiles file is created the utf grid json gets broken out a bit, so I re-assemble when dumping out to the file system. The one catch here is that the WAX library expects the usage of a jsonp callback called grid to be used when loading the json grids. If you are loading grids from the filesystem rather than a server then its not easy to add this jsonp support so I've simply wrapped the entire json in the callback when dumping out :)

See eaf58ed#L1R234. Ideas for improvements are welcome.

@onyxfish
Copy link
Author

onyxfish commented Jun 7, 2011

Great! We've frequently coded static jsonp callbacks into things, so I wouldn't worry too much about that. ;-) I have a potential use case for this coming up shortly as well, so I'll let you know how it goes!

Thanks!

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

No branches or pull requests

2 participants