aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map/OSM.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-02-05 11:34:12 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-02-05 11:34:12 +0000
commita605865fea720fdaeeecb65cc80223137eda4263 (patch)
treef80f6e9fde49711721aca08c5d8bc2c18a82d673 /perllib/FixMyStreet/Map/OSM.pm
parent190fa4a8aa4f824fc797fd903a79a076bc59b7b4 (diff)
parent1ba5f1cb9d7951224bc1320e772b1c43aeeb9fda (diff)
Merge branch '2242-automatic-permalink'
Diffstat (limited to 'perllib/FixMyStreet/Map/OSM.pm')
-rw-r--r--perllib/FixMyStreet/Map/OSM.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Map/OSM.pm b/perllib/FixMyStreet/Map/OSM.pm
index a6a95b48b..a6cb6acea 100644
--- a/perllib/FixMyStreet/Map/OSM.pm
+++ b/perllib/FixMyStreet/Map/OSM.pm
@@ -57,6 +57,7 @@ sub display_map {
if defined $c->get_param('lat');
$params{longitude} = Utils::truncate_coordinate($c->get_param('lon') + 0)
if defined $c->get_param('lon');
+ $params{zoomToBounds} = $params{any_zoom} && !defined $c->get_param('zoom');
my %data;
$data{cobrand} = $c->cobrand;