aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map/MasterMap.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-02-25 13:54:07 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-03-03 14:25:03 +0000
commita8080fad5eabd1ffef484e6979bea3c1eebd8978 (patch)
tree0ad8bf14f8b622be4eed313fed3b7cf053787206 /perllib/FixMyStreet/Map/MasterMap.pm
parent32f0e3ba1aaafb3c19708770c482dc529f481289 (diff)
[UK] Use staging hosts on some staging sites.
Diffstat (limited to 'perllib/FixMyStreet/Map/MasterMap.pm')
-rw-r--r--perllib/FixMyStreet/Map/MasterMap.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Map/MasterMap.pm b/perllib/FixMyStreet/Map/MasterMap.pm
index a2e0acd54..d66234bbf 100644
--- a/perllib/FixMyStreet/Map/MasterMap.pm
+++ b/perllib/FixMyStreet/Map/MasterMap.pm
@@ -23,7 +23,8 @@ sub map_tiles {
my ( $self, %params ) = @_;
my ( $x, $y, $z ) = ( $params{x_tile}, $params{y_tile}, $params{zoom_act} );
if ($z >= 17) {
- my $base = "//%stilma.mysociety.org/mastermap/%d/%d/%d.png";
+ my $layer = FixMyStreet->config('STAGING_SITE') ? 'mastermap-staging' : 'mastermap';
+ my $base = "//%stilma.mysociety.org/$layer/%d/%d/%d.png";
return [
sprintf($base, 'a.', $z, $x-1, $y-1),
sprintf($base, 'b.', $z, $x, $y-1),