diff options
author | Marius Halden <marius.h@lden.org> | 2021-10-07 13:32:40 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2021-10-07 13:32:40 +0200 |
commit | 09dacfc6b8bf62addeee16c20b1d90c2a256da96 (patch) | |
tree | 7caa2bf9e92227ab74448f9b746dd28bbcb81b2a /perllib/FixMyStreet/Map/OSM/MapQuest.pm | |
parent | 585e57484f9c6332668bf1ac0a6a3b39dbe32223 (diff) | |
parent | cea89fb87a96943708a1db0f646492fbfaaf000f (diff) |
Merge tag 'v3.1' into fiksgatami-devfiksgatami-dev
Diffstat (limited to 'perllib/FixMyStreet/Map/OSM/MapQuest.pm')
-rw-r--r-- | perllib/FixMyStreet/Map/OSM/MapQuest.pm | 34 |
1 files changed, 0 insertions, 34 deletions
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 <a href="https://www.mapquest.com/">MapQuest</a> <img src="https://developer.mapquest.com/sites/default/files/mapquest/osm/mq_logo.png" />, <a href="https://openstreetmap.org/">OpenStreetMap</a> and contributors, <a href="https://opendatacommons.org/licenses/odbl/">ODbL</a>' -} - -1; |