0

Negative maxzoom gets added to the total levels

->Specifying -1 would result in the most detailed level to be excluded
This commit is contained in:
Robin
2013-11-21 06:48:52 +01:00
parent 87356ba594
commit d5c5a40797

View File

@@ -519,7 +519,7 @@ class TileSet(object):
zoomLevels = self.treedepth,
minZoom = 0,
defaultZoom = self.options.get('defaultzoom'),
maxZoom = self.options.get('maxzoom', self.treedepth),
maxZoom = self.options.get('maxzoom', self.treedepth) if self.options.get('maxzoom', self.treedepth) >= 0 else self.treedepth+self.options.get('maxzoom'),
path = self.options.get('name'),
base = self.options.get('base'),
bgcolor = bgcolorformat(self.options.get('bgcolor')),