aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2019-09-09 16:11:08 +0100
committerStruan Donald <struan@exo.org.uk>2019-09-27 17:35:15 +0100
commita2e26d96b2fc08f977622f2c3dd7624cf082acbf (patch)
treebb879e348f7bede86c6e238113ccb07537fef442 /web/js
parent55db0bf4ddfb009ee5a310d1684158c90237c12c (diff)
[IsleOfWight] fix wmts bbox strategy setting
Change the way we set the BBOX strategy for the map layer as otherwise when we check for bbox_strategy in display_around this is set but has not been associated with a layer so .activate fails.
Diffstat (limited to 'web/js')
-rw-r--r--web/js/map-OpenLayers.js2
-rw-r--r--web/js/map-wmts-base.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index cd2283491..ab04d15c9 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -673,7 +673,7 @@ $.extend(fixmystreet.utils, {
styleMap: pin_layer_style_map
};
if (fixmystreet.page == 'around') {
- fixmystreet.bbox_strategy = fixmystreet.bbox_strategy || new OpenLayers.Strategy.FixMyStreet();
+ fixmystreet.bbox_strategy = fixmystreet.map_bbox_strategy || new OpenLayers.Strategy.FixMyStreet();
pin_layer_options.strategies = [ fixmystreet.bbox_strategy ];
}
if (fixmystreet.page == 'reports') {
diff --git a/web/js/map-wmts-base.js b/web/js/map-wmts-base.js
index fe8d8015e..a8dd21074 100644
--- a/web/js/map-wmts-base.js
+++ b/web/js/map-wmts-base.js
@@ -31,7 +31,7 @@ fixmystreet.maps.setup_wmts_base_map = function() {
// Give main code a new bbox_strategy that translates between
// lat/lon and our WMTS layer's coordinates
- fixmystreet.bbox_strategy = new OpenLayers.Strategy.ReprojectBBOX({
+ fixmystreet.map_bbox_strategy = new OpenLayers.Strategy.ReprojectBBOX({
ratio: 1
});
};