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

Make it easy to generate tile.json #38

Open
hampelm opened this issue Feb 13, 2013 · 3 comments
Open

Make it easy to generate tile.json #38

hampelm opened this issue Feb 13, 2013 · 3 comments

Comments

@hampelm
Copy link

hampelm commented Feb 13, 2013

Not a huge deal (the file format is pretty simple), but it would be nice if nodetiles automatically generated an appropriate tile.json for each tileset. Maybe have pass in the relevant properties when creating the map in an options object?

@Mr0grog
Copy link
Member

Mr0grog commented May 13, 2013

This is definitely a good idea (and shouldn't be too hard). Do you know if the format changed at all between Wax and Mapbox.js? I have not reexamined it since that release. There might be changes to UTFGrid, too.

@bensheldon
Copy link
Member

One thing to keep in mind with the tilejson+utfgrids is that the interaction-layer transformation is done with handlebars...embedded in json. Which becomes non-trivial for automatically generating popovers, legends, etc. for an arbitrary dataset. Furthermore, the presentation is tightly coupled to external CSS and JS.

Which isn't a reason not to do it. But is context around my dallying on it.

On Mon, May 13, 2013 at 8:07 AM, Rob Brackett [email protected]
wrote:

This is definitely a good idea (and shouldn't be too hard). Do you know if the format changed at all between Wax and Mapbox.js? I have not reexamined it since that release. There might be changes to UTFGrid, too.

Reply to this email directly or view it on GitHub:
#38 (comment)

@Mr0grog
Copy link
Member

Mr0grog commented May 16, 2013

Hmm, like the helpers for routes, this probably doesn't really belong in core, but we have no better place for it at the moment. We should try and write it as loosely coupled to anything in core as possible.

the interaction-layer transformation is done with handlebars...embedded in json. Which becomes non-trivial for automatically generating popovers, legends, etc. for an arbitrary dataset.

Yeah, I'm not sure we should even attempt to tackle that part. It should be provided by the user. There's still a lot of boilerplate we can take care of, though.

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

3 participants