diff options
author | stevenday <steve@mysociety.org> | 2012-11-22 16:50:02 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-11-26 12:47:10 +0000 |
commit | a6a42abed9dd134169d2db3d55de555951ca319f (patch) | |
tree | b511a46053783c331cf88d3b0b6b285be9cb9bb9 /perllib/FixMyStreet/Map | |
parent | 2d75d6957ee3a85bd3f11405f8530f4d4bb336bd (diff) |
Work more on the non-js maps, and tidy js version source
Diffstat (limited to 'perllib/FixMyStreet/Map')
-rw-r--r-- | perllib/FixMyStreet/Map/Zurich.pm | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/perllib/FixMyStreet/Map/Zurich.pm b/perllib/FixMyStreet/Map/Zurich.pm index a913b39bc..3d343c6ac 100644 --- a/perllib/FixMyStreet/Map/Zurich.pm +++ b/perllib/FixMyStreet/Map/Zurich.pm @@ -1,14 +1,13 @@ #!/usr/bin/perl # # FixMyStreet:Map::Zurich -# Zurich have their own tileserver serving aerial photos instead -# of street maps. +# Zurich have their own tileserver. # # Copyright (c) 2012 UK Citizens Online Democracy. All rights reserved. # Email: steve@mysociety.org; WWW: http://www.mysociety.org/ package FixMyStreet::Map::Zurich; -use base 'FixMyStreet::Map::FMS'; +use base 'FixMyStreet::Map::OSM'; use strict; @@ -21,19 +20,18 @@ sub map_template { } sub base_tile_url { - return 'http://www.wmts.stadt-zuerich.ch/Luftbild/MapServer/WMTS/tile/'; + return 'http://www.wmts.stadt-zuerich.ch/Luftbild/MapServer/WMTS/tile/1.0.0/Luftbild/default/default028mm'; } -# TODO - totally wrong probably - how do we actually do this? 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 [ - "$tile_url/$z/" . ($x - 1) . "/" . ($y - 1), - "$tile_url/$z/$x/" . ($y - 1), - "$tile_url/$z/" . ($x - 1) . "/$y", - "$tile_url/$z/$x/$y", + "$tile_url/$z/" . ($x - 1) . "/" . ($y - 1) . ".jpg", + "$tile_url/$z/$x/" . ($y - 1) . ".jpg", + "$tile_url/$z/" . ($x - 1) . "/$y.jpg", + "$tile_url/$z/$x/$y.jpg", ]; } |