mapbox / tilejson-spec

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

Fix OpenStreetMap URLs in examples #30

Closed rkaravia closed 6 years ago

rkaravia commented 6 years ago

In the OSM wiki,the tile server URLs are specified as:

https://a.tile.openstreetmap.org/${z}/${x}/${y}.png https://b.tile.openstreetmap.org/${z}/${x}/${y}.png https://c.tile.openstreetmap.org/${z}/${x}/${y}.png

See https://wiki.openstreetmap.org/wiki/Tile_servers

However, the ${x} notation was never part of the TileJSON specification which consistently uses {x}.

Fixes #18

mapsam commented 6 years ago

Thanks for the PR @rzoller! This looks great. The usage of ${z} must have been taken directly from the OSM wiki, as you point out. Since the tilejson spec does not use this notation, removing clears it up. Fixing all previous versions seems like a safe choice as well.

Let’s disregard the Travis failure, which was enabled without an actual .travis.yml file - I’ve disabled this since we don’t have any tests.