0

added separate 'zoomLevels' JS config var for marker positioning use (closes #401)

This commit is contained in:
Aaron Griffith
2011-07-31 12:38:19 -04:00
parent ebd3497a5f
commit 30a8b851b6
4 changed files with 17 additions and 9 deletions

View File

@@ -120,7 +120,7 @@ class QuadtreeGen(object):
indexfile = os.path.join(self.destdir, "overviewerConfig.js")
if not os.path.exists(indexfile):
return -1
matcher = re.compile(r"maxZoom.*:\s*(\d+)")
matcher = re.compile(r"zoomLevels(?:\'|\")\s*:\s*(\d+)")
p = -1
for line in open(indexfile, "r"):
res = matcher.search(line)