makinacorpus / django-mbtiles

Serve maps from MBTiles files
45 stars 11 forks source link

Assumption made for map url pattern #1

Closed leplatrem closed 13 years ago

leplatrem commented 13 years ago

Currently, tiles URL is relative to current map URL : https://github.com/leplatrem/django-mbtiles/blob/master/mbtilesmap/templates/mbtilesmap/map.html#L12

And the default tile URL pattern is defined as <map>/<z>/<x>/<y>/ https://github.com/leplatrem/django-mbtiles/blob/master/mbtilesmap/urls.py#L8

It means that the map has to be served on <map>/.

If not, the tile URL has to be explicitely redefined and the javascript line modified :/