maxZoom is now 5

This commit is contained in:
Laura Klünder 2017-11-28 11:15:12 +01:00
parent c19c4e72a9
commit 344eb53d14
3 changed files with 3 additions and 3 deletions

View file

@ -55,7 +55,7 @@ def tile(request, level, zoom, x, y, access_permissions=None):
enforce_tile_secret_auth(request)
zoom = int(zoom)
if not (0 <= zoom <= 10):
if not (0 <= zoom <= 5):
raise Http404
cache_package = CachePackage.open_cached()

View file

@ -515,7 +515,7 @@ c3nav = {
c3nav.map = L.map('map', {
renderer: L.svg({padding: 2}),
zoom: 0,
maxZoom: 10,
maxZoom: 5,
minZoom: minZoom,
crs: L.CRS.Simple,
maxBounds: L.GeoJSON.coordsToLatLngs(c3nav._get_padded_max_bounds(minZoom)),

View file

@ -135,7 +135,7 @@ class TileServer:
level, zoom, x, y = match.groups()
zoom = int(zoom)
if not (0 <= zoom <= 10):
if not (0 <= zoom <= 5):
return self.not_found(start_response, b'zoom out of bounds.')
# do this to be thread safe