aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-fms.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2020-05-19 17:02:50 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-07-10 19:22:07 +0100
commit009c42448270895f97302747a69485de432d537d (patch)
tree054cc04a4b21c2259f555d9e59f83eac3e81bd69 /web/js/map-fms.js
parent196e3cafcfcec0cc1a050a9d07aad81156ee794e (diff)
Add aerial view toggle to Bing Maps & subclasses.
Co-authored-by: Dave Arter <davea@mysociety.org> Co-authored-by: Matthew Somerville <matthew@mysociety.org>
Diffstat (limited to 'web/js/map-fms.js')
-rw-r--r--web/js/map-fms.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/web/js/map-fms.js b/web/js/map-fms.js
index 8af6adec3..bb51467a7 100644
--- a/web/js/map-fms.js
+++ b/web/js/map-fms.js
@@ -1,12 +1,5 @@
fixmystreet.maps.tile_base = '//{S}tilma.mysociety.org/oml';
-fixmystreet.maps.config = (function(original) {
- return function(){
- original();
- fixmystreet.map_type = OpenLayers.Layer.BingUK;
- };
-})(fixmystreet.maps.config);
-
OpenLayers.Layer.BingUK = OpenLayers.Class(OpenLayers.Layer.Bing, {
uk_bounds: [
new OpenLayers.Bounds(-6.6, 49.8, 1.102680, 51),
@@ -78,3 +71,8 @@ OpenLayers.Layer.BingUK = OpenLayers.Class(OpenLayers.Layer.Bing, {
CLASS_NAME: "OpenLayers.Layer.BingUK"
});
+
+fixmystreet.layer_options = [
+ { map_type: OpenLayers.Layer.BingUK },
+ { map_type: OpenLayers.Layer.BingAerial }
+];