Leaflet.utfgrid icon indicating copy to clipboard operation
Leaflet.utfgrid copied to clipboard

Add metadata request

Open frodrigo opened this issue 12 years ago • 7 comments

Please, add support for metadata request on onAdd or on request. Meta data can contain usefull data. Meta are requested by send a request only with callback, without tile request.

frodrigo avatar Feb 12 '13 17:02 frodrigo

Um, can you give me some details on what this is? Thanks!

danzel avatar Feb 12 '13 20:02 danzel

It's this part of spec https://github.com/mapbox/utfgrid-spec/blob/master/1.2/interaction.md

e.g. http://api.tiles.mapbox.com/v3/mapbox.geography-class.jsonp?callback=grid http://map.carte-libre.fr/arbres2/mbtiles-server.php?db=bordeaux-arbres.mbtiles&callback=grid

frodrigo avatar Feb 12 '13 21:02 frodrigo

So ideally this includes mustache for templating, and htmlsanitize. @danzel do you have time to work on this?

tmcw avatar Feb 15 '13 18:02 tmcw

Not at the moment, if you want to give it a crack that would be much appreciated :-)

danzel avatar Feb 15 '13 21:02 danzel

First step can be done without mustache, just by fetch meta json and expose it.

frodrigo avatar Feb 16 '13 15:02 frodrigo

Hello there, may I hop in ?

I don't know if anybody is currently working on this issue, I've seen what's been done on the fork in mapbox.js and I don't really like the idea of TileJSON being part of and exposed by the UtfGrid layer.

To me, the TileJSON spec is way too opinionated on how tileset metadata should be expressed and rather limitating/confusing, I'd rather see it handled by a Layer/LayerGroup factory than being the default way to create a bare UtfGrid layer.

ddelemeny avatar Dec 09 '13 20:12 ddelemeny

@ddelemeny if you have any ideas about improving the TileJSON spec, they are welcome in its open repository.

tmcw avatar Dec 09 '13 20:12 tmcw