aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorSteven Day <steve@mysociety.org>2012-11-19 11:00:05 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-11-26 12:47:10 +0000
commit86b8dab75f74fed9297fc689b3f2964425be61fd (patch)
tree052500302628cc4458eb0d4970fac90bc48bc6e7 /web/js/map-OpenLayers.js
parenta423e85eeae90c3a3f586e177e51f916ad9eeabd (diff)
Convert bounds from swiss to lat/lon so ajax doesn't break
Diffstat (limited to 'web/js/map-OpenLayers.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 d4bf7800c..8506f8076 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -137,7 +137,7 @@ function fixmystreet_onload() {
styleMap: pin_layer_style_map
};
if (fixmystreet.page == 'around') {
- fixmystreet.bbox_strategy = new OpenLayers.Strategy.BBOX({ ratio: 1 });
+ fixmystreet.bbox_strategy = fixmystreet.bbox_strategy || new OpenLayers.Strategy.BBOX({ ratio: 1 });
pin_layer_options.strategies = [ fixmystreet.bbox_strategy ];
pin_layer_options.protocol = new OpenLayers.Protocol.HTTP({
url: '/ajax',