mapbox / tilejson-spec

JSON format for describing map tilesets.
255 stars 52 forks source link

tiles and grids url token format? #4

Closed yhahn closed 13 years ago

yhahn commented 13 years ago

Is there a reason why the tiles and grids urls use a ${z} style token for replacement?

Out of the box, it looks like modest maps uses {Z} while leaflet uses {z}.

Wondering if we should switch and maybe come to a consensus on the right token to use.

/cc @kkaefer @tmcw

kkaefer commented 13 years ago

I initially used %z, but @tmcw tipped me off that {z} is more common. I messed up the update and used ${z} instead. We should change it to {z}.

yhahn commented 13 years ago

Ok, and lowercase? I think I tried {z} with modestmaps and it didn't work... needed {Z}.

kkaefer commented 13 years ago

We can make it /\{z\}/gi

tmcw commented 13 years ago

Leaflet uses {z}, Modest Maps uses {Z}, and OpenLayers uses ${z}.

kkaefer commented 13 years ago

/\$?\{z\}/gi?

yhahn commented 13 years ago

Let's talk about this briefly today and decide on what the spec will use.

yhahn commented 13 years ago

decided: {z}