aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenStreetMap.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-07-16 13:08:56 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-07-16 13:08:56 +0100
commit4770393b3de8d38649a66b9608048c15ec73347a (patch)
treed74345e076000d8e193532c6710dfd779d46768e /web/js/map-OpenStreetMap.js
parent2915ec9562bcb43f981d08ed2fa64a13c78a6a58 (diff)
Add aerial option to OSM maps.
Diffstat (limited to 'web/js/map-OpenStreetMap.js')
-rw-r--r--web/js/map-OpenStreetMap.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/js/map-OpenStreetMap.js b/web/js/map-OpenStreetMap.js
index 9ed3a2ee3..bd3497343 100644
--- a/web/js/map-OpenStreetMap.js
+++ b/web/js/map-OpenStreetMap.js
@@ -7,6 +7,13 @@ fixmystreet.maps.config = function() {
new OpenLayers.Control.PermalinkFMS('map'),
new OpenLayers.Control.PanZoomFMS({id: 'fms_pan_zoom' })
];
+
+ if (OpenLayers.Layer.BingAerial) {
+ fixmystreet.layer_options = [
+ { map_type: fixmystreet.map_type },
+ { map_type: OpenLayers.Layer.BingAerial }
+ ];
+ }
};
// http://www.openstreetmap.org/openlayers/OpenStreetMap.js (added maxResolution)