0

added minzoom config.js setting

This commit is contained in:
Alex Headley
2011-04-22 11:19:02 -04:00
parent eea97d1b1c
commit fa49aff4b0
3 changed files with 4 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
var config = { var config = {
tileSize: 384, tileSize: 384,
defaultZoom: 2, defaultZoom: 2,
minZoom: {minzoom},
maxZoom: {maxzoom}, maxZoom: {maxzoom},
// center on this point, in world coordinates, ex: // center on this point, in world coordinates, ex:
//center: [0,0,0], //center: [0,0,0],

View File

@@ -89,6 +89,8 @@ class MapGen(object):
configpath = os.path.join(util.get_program_path(), "config.js") configpath = os.path.join(util.get_program_path(), "config.js")
config = open(configpath, 'r').read() config = open(configpath, 'r').read()
config = config.replace(
"{minzoom}", str(0))
config = config.replace( config = config.replace(
"{maxzoom}", str(zoomlevel)) "{maxzoom}", str(zoomlevel))

View File

@@ -659,7 +659,7 @@ for (idx in mapTypeData) {
getTileUrl: getTileUrlGenerator(view.path, view.base, imgformat), getTileUrl: getTileUrlGenerator(view.path, view.base, imgformat),
tileSize: new google.maps.Size(config.tileSize, config.tileSize), tileSize: new google.maps.Size(config.tileSize, config.tileSize),
maxZoom: config.maxZoom, maxZoom: config.maxZoom,
minZoom: 0, minZoom: config.minZoom,
isPng: !(imgformat.match(/^png$/i) == null) isPng: !(imgformat.match(/^png$/i) == null)
}; };