aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map/FMS.pm
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 /perllib/FixMyStreet/Map/FMS.pm
parent4d6cd5f040b8a8f28131bccdedd3545f57915e7c (diff)
Update Bing Maps parameter ID.
Diffstat (limited to 'perllib/FixMyStreet/Map/FMS.pm')
-rw-r--r--perllib/FixMyStreet/Map/FMS.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/Map/FMS.pm b/perllib/FixMyStreet/Map/FMS.pm
index 7e61f334c..50a21c125 100644
--- a/perllib/FixMyStreet/Map/FMS.pm
+++ b/perllib/FixMyStreet/Map/FMS.pm
@@ -28,8 +28,9 @@ sub map_tiles {
sprintf($tile_base, '', $z, $x, $y),
];
} else {
- my $url = "g=3293";
- $url .= "&productSet=mmOS" if $z > 10 && !$ni;
+ my $key = FixMyStreet->config('BING_MAPS_API_KEY');
+ my $url = "g=3467";
+ $url .= "&productSet=mmOS&key=$key" if $z > 10 && !$ni;
return [
"//ecn.t0.tiles.virtualearth.net/tiles/r" . $self->get_quadkey($x-1, $y-1, $z) . ".png?$url",
"//ecn.t1.tiles.virtualearth.net/tiles/r" . $self->get_quadkey($x, $y-1, $z) . ".png?$url",