diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-02-29 12:31:45 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-02-29 12:31:45 +0000 |
commit | e771a1e5e04ae6f14928b1a328cca06c37f9af78 (patch) | |
tree | db25b499053c046a1a633a2b0e5bec5dd1362eba /web/js/map-OpenLayers.js | |
parent | ee7168d35e11f64ecefb7093c04e323dace9722b (diff) |
Reduce JS pin fetching to only exactly the map that is shown.
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index b753d8615..c6bdfb68e 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -99,7 +99,7 @@ function fixmystreet_onload() { styleMap: pin_layer_style_map }; if (fixmystreet.page == 'around') { - fixmystreet.bbox_strategy = new OpenLayers.Strategy.BBOX(); + 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', |