aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-05-05 09:17:50 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-05-05 09:45:52 +0100
commit1f3b1623fd523d1612d7787006cd53ab15974dd5 (patch)
tree7687ea6a6f3c87de102d3f58ba482d9f86077c2d /web
parent4d6cd5f040b8a8f28131bccdedd3545f57915e7c (diff)
Update Bing Maps parameter ID.
Diffstat (limited to 'web')
-rw-r--r--web/js/map-bing-ol.js8
-rw-r--r--web/js/map-fms.js12
2 files changed, 11 insertions, 9 deletions
diff --git a/web/js/map-bing-ol.js b/web/js/map-bing-ol.js
index 9406997f9..9b0a73fb8 100644
--- a/web/js/map-bing-ol.js
+++ b/web/js/map-bing-ol.js
@@ -105,10 +105,10 @@ OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, {
get_urls: function(bounds, z) {
return [
- "//ecn.t0.tiles.virtualearth.net/tiles/r${id}.png?g=3293",
- "//ecn.t1.tiles.virtualearth.net/tiles/r${id}.png?g=3293",
- "//ecn.t2.tiles.virtualearth.net/tiles/r${id}.png?g=3293",
- "//ecn.t3.tiles.virtualearth.net/tiles/r${id}.png?g=3293"
+ "//ecn.t0.tiles.virtualearth.net/tiles/r${id}.png?g=3467",
+ "//ecn.t1.tiles.virtualearth.net/tiles/r${id}.png?g=3467",
+ "//ecn.t2.tiles.virtualearth.net/tiles/r${id}.png?g=3467",
+ "//ecn.t3.tiles.virtualearth.net/tiles/r${id}.png?g=3467"
];
},
diff --git a/web/js/map-fms.js b/web/js/map-fms.js
index 1c08bd251..6ef4265d0 100644
--- a/web/js/map-fms.js
+++ b/web/js/map-fms.js
@@ -59,12 +59,14 @@ OpenLayers.Layer.BingUK = OpenLayers.Class(OpenLayers.Layer.Bing, {
}
} else {
var type = '';
- if (z > 10 && in_uk) { type = '&productSet=mmOS'; }
+ if (z > 10 && in_uk) {
+ type = '&productSet=mmOS&key=' + fixmystreet.key;
+ }
urls = [
- "//ecn.t0.tiles.virtualearth.net/tiles/r${id}.png?g=3293" + type,
- "//ecn.t1.tiles.virtualearth.net/tiles/r${id}.png?g=3293" + type,
- "//ecn.t2.tiles.virtualearth.net/tiles/r${id}.png?g=3293" + type,
- "//ecn.t3.tiles.virtualearth.net/tiles/r${id}.png?g=3293" + type
+ "//ecn.t0.tiles.virtualearth.net/tiles/r${id}.png?g=3467" + type,
+ "//ecn.t1.tiles.virtualearth.net/tiles/r${id}.png?g=3467" + type,
+ "//ecn.t2.tiles.virtualearth.net/tiles/r${id}.png?g=3467" + type,
+ "//ecn.t3.tiles.virtualearth.net/tiles/r${id}.png?g=3467" + type
];
}
return urls;