0

Add a minzoom option

This only affects what's written to overviewerConfig.js.  That is, it
does not change the amount of tiles rendered (it's exactly analogous to
maxzom)

Closes #994
This commit is contained in:
Andrew Chin
2013-12-26 23:04:20 -05:00
parent 94b8a81a90
commit 7089eef005
4 changed files with 15 additions and 2 deletions

View File

@@ -517,7 +517,6 @@ class TileSet(object):
d = dict(name = self.options.get('title'),
zoomLevels = self.treedepth,
minZoom = 0,
defaultZoom = self.options.get('defaultzoom'),
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'),
@@ -531,6 +530,7 @@ class TileSet(object):
poititle = self.options.get("poititle"),
showlocationmarker = self.options.get("showlocationmarker")
)
d['minZoom'] = min(max(0, self.options.get("minzoom", 0)), d['maxZoom'])
if isOverlay:
d.update({"tilesets": self.options.get("overlay")})