diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-07-16 14:26:13 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-07-16 14:26:13 +0100 |
commit | d55461e6d05ab0c1b398f756a687107a5ce6d49e (patch) | |
tree | 333448d3a3e3336f8ce0f3092b736eaab411b174 /web/js | |
parent | 4770393b3de8d38649a66b9608048c15ec73347a (diff) |
Default to aerial map in JS if aerial given in URL.
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/map-bing-ol.js | 4 |
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]); + } }); })(); |