From a049a21d86ae8f4b92f3cf7c78f96ab777a9a88f Mon Sep 17 00:00:00 2001 From: M Somerville Date: Thu, 13 Aug 2020 20:58:31 +0100 Subject: MapQuest tiles went away a long time ago. --- perllib/FixMyStreet/Map/OSM/MapQuest.pm | 34 --------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 perllib/FixMyStreet/Map/OSM/MapQuest.pm (limited to 'perllib/FixMyStreet/Map/OSM/MapQuest.pm') diff --git a/perllib/FixMyStreet/Map/OSM/MapQuest.pm b/perllib/FixMyStreet/Map/OSM/MapQuest.pm deleted file mode 100644 index 8b24e1ba2..000000000 --- a/perllib/FixMyStreet/Map/OSM/MapQuest.pm +++ /dev/null @@ -1,34 +0,0 @@ -# FixMyStreet:Map::OSM::CycleMap -# OSM CycleMap maps on FixMyStreet. -# -# Copyright (c) 2010 UK Citizens Online Democracy. All rights reserved. -# Email: matthew@mysociety.org; WWW: http://www.mysociety.org/ - -package FixMyStreet::Map::OSM::MapQuest; -use base 'FixMyStreet::Map::OSM'; - -use strict; - -sub map_type { 'OpenLayers.Layer.OSM.MapQuestOpen' } - -sub map_tiles { - my ( $self, %params ) = @_; - my ( $x, $y, $z ) = ( $params{x_tile}, $params{y_tile}, $params{zoom_act} ); - my $tile_url = $self->base_tile_url(); - return [ - "https://otile1-s.$tile_url/$z/" . ($x - 1) . "/" . ($y - 1) . ".png", - "https://otile2-s.$tile_url/$z/$x/" . ($y - 1) . ".png", - "https://otile3-s.$tile_url/$z/" . ($x - 1) . "/$y.png", - "https://otile4-s.$tile_url/$z/$x/$y.png", - ]; -} - -sub base_tile_url { - return 'mqcdn.com/tiles/1.0.0/map/'; -} - -sub copyright { - 'Data, imagery and map information provided by MapQuest , OpenStreetMap and contributors, ODbL' -} - -1; -- cgit v1.2.3