maxZoom is now 5
This commit is contained in:
parent
c19c4e72a9
commit
344eb53d14
3 changed files with 3 additions and 3 deletions
|
@ -55,7 +55,7 @@ def tile(request, level, zoom, x, y, access_permissions=None):
|
||||||
enforce_tile_secret_auth(request)
|
enforce_tile_secret_auth(request)
|
||||||
|
|
||||||
zoom = int(zoom)
|
zoom = int(zoom)
|
||||||
if not (0 <= zoom <= 10):
|
if not (0 <= zoom <= 5):
|
||||||
raise Http404
|
raise Http404
|
||||||
|
|
||||||
cache_package = CachePackage.open_cached()
|
cache_package = CachePackage.open_cached()
|
||||||
|
|
|
@ -515,7 +515,7 @@ c3nav = {
|
||||||
c3nav.map = L.map('map', {
|
c3nav.map = L.map('map', {
|
||||||
renderer: L.svg({padding: 2}),
|
renderer: L.svg({padding: 2}),
|
||||||
zoom: 0,
|
zoom: 0,
|
||||||
maxZoom: 10,
|
maxZoom: 5,
|
||||||
minZoom: minZoom,
|
minZoom: minZoom,
|
||||||
crs: L.CRS.Simple,
|
crs: L.CRS.Simple,
|
||||||
maxBounds: L.GeoJSON.coordsToLatLngs(c3nav._get_padded_max_bounds(minZoom)),
|
maxBounds: L.GeoJSON.coordsToLatLngs(c3nav._get_padded_max_bounds(minZoom)),
|
||||||
|
|
|
@ -135,7 +135,7 @@ class TileServer:
|
||||||
level, zoom, x, y = match.groups()
|
level, zoom, x, y = match.groups()
|
||||||
|
|
||||||
zoom = int(zoom)
|
zoom = int(zoom)
|
||||||
if not (0 <= zoom <= 10):
|
if not (0 <= zoom <= 5):
|
||||||
return self.not_found(start_response, b'zoom out of bounds.')
|
return self.not_found(start_response, b'zoom out of bounds.')
|
||||||
|
|
||||||
# do this to be thread safe
|
# do this to be thread safe
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue