source: subversion/sites/other/tilesAtHome_tahngo/browse/urls.py @ 21747

Revision 21747, 388 bytes checked in by spaetz, 4 years ago (diff)

allow 12,x,y notations in URLs

So now both URLs will worL:
 http://tah.openstreetmap.org/Browse/details/captionless/12/2393/1686/
 http://tah.openstreetmap.org/Browse/details/captionless/12,2393,1686/

This will make copy'n paste easier.

Line 
1from django.conf.urls.defaults import *
2from tah.browse.views import *
3
4urlpatterns = patterns('',
5    (r'^$', index),
6    (r'^slippy/$', slippymap),
7    (r'^details/$', tiledetails_base),
8    (r'^details/(?P<layername>\w+)/(?P<z>[0-9]+)[/,](?P<x>[0-9]+)[/,](?P<y>[0-9]+)/$', tiledetails),
9    (r'^Tiles/(?P<layername>\w+)/(?P<z>[0-9]+)[/,](?P<x>[0-9]+)[/,](?P<y>[0-9]+).png$', serve),
10)
Note: See TracBrowser for help on using the repository browser.