aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map/OSM/MapQuest.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-07-19 13:56:44 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-07-20 14:01:18 +0100
commit6286c0a7b148f3758488b354764aeb6efcbea22b (patch)
treeacd02e7f8cb929dcacc461b332a1afc757ff5588 /perllib/FixMyStreet/Map/OSM/MapQuest.pm
parentde0ecd612977259c721621917044357796a670d7 (diff)
Improve map tile handling outside Great Britain.
Diffstat (limited to 'perllib/FixMyStreet/Map/OSM/MapQuest.pm')
-rw-r--r--perllib/FixMyStreet/Map/OSM/MapQuest.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Map/OSM/MapQuest.pm b/perllib/FixMyStreet/Map/OSM/MapQuest.pm
index 9cf6de01f..4751679f5 100644
--- a/perllib/FixMyStreet/Map/OSM/MapQuest.pm
+++ b/perllib/FixMyStreet/Map/OSM/MapQuest.pm
@@ -16,7 +16,8 @@ sub map_type {
}
sub map_tiles {
- my ($self, $x, $y, $z) = @_;
+ my ( $self, %params ) = @_;
+ my ( $x, $y, $z ) = ( $params{x_tile}, $params{y_tile}, $params{zoom_act} );
my $tile_url = $self->base_tile_url();
return [
"http://otile1.$tile_url/$z/" . ($x - 1) . "/" . ($y - 1) . ".png",