0

Merge remote branch 'eminence/master'

This commit is contained in:
Andrew Brown
2010-09-26 23:05:34 -04:00
4 changed files with 182 additions and 15 deletions

View File

@@ -22,6 +22,7 @@ import functools
import re
import shutil
import collections
import json
from PIL import Image
@@ -119,6 +120,11 @@ class QuadtreeGen(object):
with open(os.path.join(self.destdir, "index.html"), 'w') as output:
output.write(html)
with open(os.path.join(self.destdir, "markers.js"), 'w') as output:
output.write("var markerData=%s" % json.dumps(self.world.POI))
def _get_cur_depth(self):
"""How deep is the quadtree currently in the destdir? This glances in
index.html to see what maxZoom is set to.