updated isOverlay to correctly recognize modes with no Base() primitive
This commit is contained in:
@@ -508,7 +508,7 @@ class TileSet(object):
|
|||||||
"""
|
"""
|
||||||
def bgcolorformat(color):
|
def bgcolorformat(color):
|
||||||
return "#%02x%02x%02x" % color[0:3]
|
return "#%02x%02x%02x" % color[0:3]
|
||||||
isOverlay = True in [True for x in self.options.get("rendermode") if isinstance(x, rendermodes.Overlay)]
|
isOverlay = not any(isinstance(x, rendermodes.Base) for x in self.options.get("rendermode"))
|
||||||
|
|
||||||
d = dict(name = self.options.get('title'),
|
d = dict(name = self.options.get('title'),
|
||||||
zoomLevels = self.treedepth,
|
zoomLevels = self.treedepth,
|
||||||
|
|||||||
Reference in New Issue
Block a user