aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-wmts-base.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/map-wmts-base.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/map-wmts-base.js')
-rw-r--r--web/js/map-wmts-base.js2
1 files changed, 1 insertions, 1 deletions
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
});
};