diff options
author | Dave Arter <davea@mysociety.org> | 2018-10-10 16:02:38 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-10-10 16:02:38 +0100 |
commit | 4cf8382c424e7a0cfa2cb27c62db5848fc94cddd (patch) | |
tree | efe42b9f643a4ef2237ac26c9e2cb2821d0a2d5d | |
parent | 43703a325e39864ae698b6a5c861e170d72c2ad2 (diff) |
Set resFactor on pin strategy due to server-side pagination
Without this, zooming in would not refresh and so pins wouldn’t be shown
-rw-r--r-- | www/js/map-OpenLayers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js index 1de220d..8557f20 100644 --- a/www/js/map-OpenLayers.js +++ b/www/js/map-OpenLayers.js @@ -128,7 +128,7 @@ function fixmystreet_onload() { fixmystreet.map.addLayer(fixmystreet.report_location); if (fixmystreet.page == 'around') { - fixmystreet.bbox_strategy = new OpenLayers.Strategy.BBOX({ ratio: CONFIG.MAP_LOADING_RATIO }); + fixmystreet.bbox_strategy = new OpenLayers.Strategy.BBOX({ ratio: CONFIG.MAP_LOADING_RATIO, resFactor: 1.5 }); pin_layer_options.strategies = [ fixmystreet.bbox_strategy ]; pin_layer_options.protocol = new OpenLayers.Protocol.HTTP({ url: CONFIG.FMS_URL + '/ajax', |