From bf07d3d10c2e00eba3371cff700c8f3cb4d8e3e8 Mon Sep 17 00:00:00 2001 From: Gregory Short Date: Mon, 6 Sep 2010 19:58:56 -0500 Subject: [PATCH] Moved gmap tiles into a tiles/ subdirectory for a cleaner gmap final output (output directory contains just index.html and tiles/) --- gmap.py | 5 ++++- template.html | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gmap.py b/gmap.py index 6f56698..77e9be3 100755 --- a/gmap.py +++ b/gmap.py @@ -41,8 +41,11 @@ def main(): if not os.path.exists(destdir): os.mkdir(destdir) + tiledir = os.path.join(destdir, "tiles"); + if not os.path.exists(tiledir): + os.mkdir(tiledir) - zoom = world.generate_quadtree(results, mincol, maxcol, minrow, maxrow, destdir) + zoom = world.generate_quadtree(results, mincol, maxcol, minrow, maxrow, tiledir) print "DONE" diff --git a/template.html b/template.html index fbb5b27..2d87c39 100644 --- a/template.html +++ b/template.html @@ -12,7 +12,7 @@