[Tilesathome] t at h URL

Sebastian Spaeth Sebastian at SSpaeth.de
Wed Jul 25 09:02:43 BST 2007


Hi OJW, hi all.

I have rewritten the tile serving URL rules of the t at h server. There were seperate rules for every layer (I condensed them into one generic rule which looks nicer and might help performance a tiny bit). The changes are backwards compatible, so you can use the same URLs as before.

One user visible change is that in addition to the current, still valid, URL scheme, the .php extension became optional. It confused people, because they were thinking it goes through some php file, which it usually does not. So in addition to:

http://dev.openstreetmap.org/~ojw/Tiles/tile.php/13/4291/2868.png
this works also now:
http://dev.openstreetmap.org/~ojw/Tiles/tile/13/4291/2868.png

"tile" is just the name of the main, default layer and you can replace it with the name of any other existing layer, like:

http://dev.openstreetmap.org/~ojw/Tiles/maplint.php/13/4291/2868.png
http://dev.openstreetmap.org/~ojw/Tiles/maplint/13/4291/2868.png

Nonexisting layers will give an error message (404 Tiles):
http://dev.openstreetmap.org/~ojw/Tiles/blah/13/4291/2868.png

I have committed the changes to SVN, so they are revertable in case it turns out a bad idea. Sorry OJW for meddling so much with the core of t at h, I hope you don't mind *too* much.

spaetz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20070725/313ad18d/attachment.pgp>


More information about the Tilesathome mailing list