aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-07-12 10:31:28 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-07-12 10:31:28 +0100
commitac4479d1f73b1b22254b2729d0f456fc5bebab68 (patch)
tree43e02f95c46c60fc7edc3d76ab18887c378a7ee3 /web/js/map-OpenLayers.js
parente10df38e15cda1c4351eea7b260739cbd038b423 (diff)
Use correct variable name, fixes #132.
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r--web/js/map-OpenLayers.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index daea80f65..a1d870483 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -215,7 +215,8 @@ OpenLayers.Control.PermalinkFMS = OpenLayers.Class(OpenLayers.Control.Permalink,
href = href.substring( 0, href.indexOf(separator) );
}
- href += separator + OpenLayers.Util.getParameterString(this.createParams(null, this.map.getZoom()+fixmystreet.ZOOM_OFFSET));
+ href += separator + OpenLayers.Util.getParameterString(this.createParams(null, this.map.getZoom()+fixmystreet.zoomOffset));
+ // Could use mlat/mlon here as well if we are on a page with a marker
if (this.anchor && !this.element) {
window.location.href = href;
}