Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

T@H "Browse" should work with parameters in the URL #1229

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments
Closed

T@H "Browse" should work with parameters in the URL #1229

openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments

Comments

@openstreetmap-trac
Copy link

Reporter: chriscf
[Submitted to the original trac issue database at 10.38am, Thursday, 2nd October 2008]

The T@H tiles are available at http://c.tah.openstreetmap.org/Tiles/tile/12/2033/1357.png

The browse function is available at
http://server.tah.openstreetmap.org/Browse/?layer=tile&z=12&x=2033&y=1357

Some rewrite magic should be able to make this available at:
http://server.tah.openstreetmap.org/Browse/tile/12/2033/1357

An example mod_rewrite rule (untested) might be:
RewriteRule ^Browse/(.)/(1)?[0-9]/([0-9])/([0-9]*)(/)?$ Browse/?layer=$1&z=$2&x=$3&y=$4 [PT,L,QSA]

@openstreetmap-trac
Copy link
Author

Author: chriscf
[Added to the original trac issue at 11.39am, Thursday, 2nd October 2008]

Without trac munging, that would be:

RewriteRule ^Browse/(.*)/(1)?[0-9]/([0-9]*)/([0-9]*)(/)?$ Browse/?layer=$1&z=$2&x=$3&y=$4 [PT,L,QSA]

@openstreetmap-trac
Copy link
Author

Author: chriscf
[Added to the original trac issue at 3.16pm, Monday, 20th October 2008]

Moving to t@h component and reassigning, as related to website rather than rendering.

@openstreetmap-trac
Copy link
Author

Author: spaetz
[Added to the original trac issue at 12.22pm, Tuesday, 29th June 2010]

I agree, this should be done and should be possible.I'll implement it.

@openstreetmap-trac
Copy link
Author

Author: spaetz
[Added to the original trac issue at 9.06am, Wednesday, 30th June 2010]

Fixed, both URLs are now equivalent and the links in the browse map have been changed.

http://tah.openstreetmap.org/Browse/?layer=tile&z=12&x=2033&y=1357
http://tah.openstreetmap.org/Browse/tile/12/2033/1357/
and while I was at it, I also allowed this to work which is nice for copy and pasting sometimes:
http://tah.openstreetmap.org/Browse/tile/12,2033,1357

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant