aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-18 18:07:11 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-18 18:07:11 +0000
commit7b4ff6d6a37368cada7939dd635981d01f4fc37e (patch)
treeb49c2cf39d36525dc94044d27e53af197c01100e
parentd02c6134835e6b3b0a4e3f84da472f931b25f8a5 (diff)
Remove non-working most zoomed in level.
-rw-r--r--perllib/FixMyStreet/Map/Zurich.pm4
-rw-r--r--web/js/map-wmts-zurich.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Map/Zurich.pm b/perllib/FixMyStreet/Map/Zurich.pm
index 8cdcb05e6..cec34f4fd 100644
--- a/perllib/FixMyStreet/Map/Zurich.pm
+++ b/perllib/FixMyStreet/Map/Zurich.pm
@@ -13,7 +13,7 @@ use Geo::Coordinates::CH1903;
use Math::Trig;
use Utils;
-use constant ZOOM_LEVELS => 10;
+use constant ZOOM_LEVELS => 9;
use constant DEFAULT_ZOOM => 7;
use constant MIN_ZOOM_LEVEL => 0;
@@ -93,7 +93,7 @@ sub latlon_to_tile($$$) {
my $matrix_id = $zoom;
$matrix_id = 0 if $matrix_id < 0;
- my @scales = ( '250000', '125000', '64000', '32000', '16000', '8000', '4000', '2000', '1000', '500' );
+ my @scales = ( '250000', '125000', '64000', '32000', '16000', '8000', '4000', '2000', '1000' );
my $tileOrigin = { lat => 30814423, lon => -29386322 };
my $tileSize = 256;
my $res = $scales[$zoom] / (39.3701 * 96); # OpenLayers.INCHES_PER_UNIT[units] * OpenLayers.DOTS_PER_INCH
diff --git a/web/js/map-wmts-zurich.js b/web/js/map-wmts-zurich.js
index f29d9bd8b..e79fd2ec2 100644
--- a/web/js/map-wmts-zurich.js
+++ b/web/js/map-wmts-zurich.js
@@ -35,7 +35,7 @@
fixmystreet.map_options = {
maxExtent: new OpenLayers.Bounds(676000, 241000, 690000, 255000),
units: 'm',
- scales: [ '250000', '125000', '64000', '32000', '16000', '8000', '4000', '2000', '1000', '500']
+ scales: [ '250000', '125000', '64000', '32000', '16000', '8000', '4000', '2000', '1000' ]
};
fixmystreet.layer_options = {