aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map/Bexley.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/Map/Bexley.pm')
-rw-r--r--perllib/FixMyStreet/Map/Bexley.pm39
1 files changed, 0 insertions, 39 deletions
diff --git a/perllib/FixMyStreet/Map/Bexley.pm b/perllib/FixMyStreet/Map/Bexley.pm
deleted file mode 100644
index d3c7a013a..000000000
--- a/perllib/FixMyStreet/Map/Bexley.pm
+++ /dev/null
@@ -1,39 +0,0 @@
-# FixMyStreet:Map::Bexley
-#
-# A combination of FMS OS maps and our own tiles
-
-package FixMyStreet::Map::Bexley;
-use base 'FixMyStreet::Map::FMS';
-
-use strict;
-
-use constant ZOOM_LEVELS => 7;
-
-sub map_template { 'fms' }
-
-sub map_javascript { [
- '/vendor/OpenLayers/OpenLayers.wfs.js',
- '/js/map-OpenLayers.js',
- '/js/map-bing-ol.js',
- '/js/map-fms.js',
- '/js/map-bexley.js',
-] }
-
-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/bexley/%d/%d/%d.png";
- return [
- sprintf($base, 'a.', $z, $x-1, $y-1),
- sprintf($base, 'b.', $z, $x, $y-1),
- sprintf($base, 'c.', $z, $x-1, $y),
- sprintf($base, '', $z, $x, $y),
- ];
- } else {
- return $self->SUPER::map_tiles(%params);
- }
-}
-
-1;
-