Commit 43fe0ae6 authored by Jgiannelos's avatar Jgiannelos
Browse files

Fix recursion guard for maxzoom

parent e80cc92b
......@@ -32,11 +32,11 @@ class TileSet:
def add(self, tile):
"""Add tile in tileset"""
self.tileset.add(tile)
if tile.z >= self.maxzoom:
if tile.z > self.maxzoom:
return
self.tileset.add(tile)
for child in tile.children():
self.add(child)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment