allow -2 and -1 zoom

This commit is contained in:
Laura Klünder 2017-11-28 14:14:03 +01:00
parent 78d09a0c0c
commit 5184206b49
4 changed files with 6 additions and 4 deletions

View file

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