Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Support exporting mbtiles interactivity layer #7

onyxfish opened this Issue Mar 3, 2011 · 2 comments


None yet
2 participants

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 springmeyer pushed a commit that referenced this issue Jun 6, 2011

Dane Springmeyer add support for dumping out interactivity data - closes issue #7 eaf58ed

springmeyer commented Jun 6, 2011

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.

@springmeyer springmeyer closed this Jun 6, 2011

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!


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