aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-bing-ol.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-07-16 20:35:03 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-07-16 20:35:03 +0100
commit4dfbdeb587859855180e7fb058278f61d7be7fb2 (patch)
tree927267809a47754a7271b0833a5fdb2ac185b60e /web/js/map-bing-ol.js
parent60af4a782721257e2647cc37cff8234779361e43 (diff)
parentd55461e6d05ab0c1b398f756a687107a5ce6d49e (diff)
Merge branch 'osm-aerial-tiles'
Diffstat (limited to 'web/js/map-bing-ol.js')
-rw-r--r--web/js/map-bing-ol.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/js/map-bing-ol.js b/web/js/map-bing-ol.js
index b0e5dfc6a..179238633 100644
--- a/web/js/map-bing-ol.js
+++ b/web/js/map-bing-ol.js
@@ -25,6 +25,10 @@ fixmystreet.maps.config = function() {
fixmystreet.map.setBaseLayer(fixmystreet.map.layers[0]);
}
});
+ // If page loaded with Aerial as starting, rather than default road
+ if ($('#map_layer_toggle').text() == translation_strings.map_roads) {
+ fixmystreet.map.setBaseLayer(fixmystreet.map.layers[1]);
+ }
});
})();