aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-04-21 09:37:34 +0100
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-04-21 09:37:34 +0100
commit83bfa3d8c656a9a1422a6f266c44b3d9c398fc51 (patch)
treee078a9c226b154fa677040c3d1f84983714883a2 /web/js
parent5e4eaf9f30bfa1d37426ff7d4e0295f6718ba28f (diff)
Start introducing variable zoom dependent on location.
Diffstat (limited to 'web/js')
-rw-r--r--web/js/map-OpenLayers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index 1134bafb7..ed3ca4653 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -24,7 +24,7 @@ YAHOO.util.Event.onContentReady('map', function() {
new OpenLayers.Projection("EPSG:4326"),
fixmystreet.map.getProjectionObject()
);
- fixmystreet.map.setCenter(centre, 2);
+ fixmystreet.map.setCenter(centre, fixmystreet.zoom || 2);
}
if (document.getElementById('mapForm')) {