From 0caa655095d6e58697ca7f6bf1ba3104ebcf8a3d Mon Sep 17 00:00:00 2001 From: zeeZ Date: Tue, 17 May 2011 13:34:54 +0200 Subject: [PATCH] Default zoom in config or 0. --- configuration.txt | 1 + web/js/map.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configuration.txt b/configuration.txt index 196f588f..c84ad911 100644 --- a/configuration.txt +++ b/configuration.txt @@ -129,6 +129,7 @@ web: # fillColor: "#FF0000" # fillOpacity: 0.35 + defaultzoom: 0 defaultworld: world worlds: - title: World diff --git a/web/js/map.js b/web/js/map.js index fdd69d2b..4161a919 100644 --- a/web/js/map.js +++ b/web/js/map.js @@ -125,7 +125,7 @@ DynMap.prototype = { .appendTo(container); var map = this.map = new google.maps.Map(mapContainer.get(0), { - zoom: 1, + zoom: me.options.defaultzoom || 0, center: new google.maps.LatLng(0, 1), navigationControl: true, navigationControlOptions: {