0

updated isOverlay to correctly recognize modes with no Base() primitive

This commit is contained in:
Aaron Griffith
2012-04-09 17:10:05 -04:00
parent 88d0d838b9
commit db0a1d3415

View File

@@ -508,7 +508,7 @@ class TileSet(object):
"""
def bgcolorformat(color):
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'),
zoomLevels = self.treedepth,