aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map/Tilma/Original/StreetView.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@balti.ukcod.org.uk>2010-11-26 01:36:07 +0000
committerMatthew Somerville <matthew@balti.ukcod.org.uk>2010-11-26 01:36:07 +0000
commita17e62af230c2d9aa2fe49d22be990525950c01e (patch)
treef12cb1634ef9240e180cb1ae5f55df02b0060b64 /perllib/FixMyStreet/Map/Tilma/Original/StreetView.pm
parenta821c15c33c59bb8ff3bb5f5722a15f2ca527b6c (diff)
Refactor map display into separate modules, response for own set-up and display.
Diffstat (limited to 'perllib/FixMyStreet/Map/Tilma/Original/StreetView.pm')
-rw-r--r--perllib/FixMyStreet/Map/Tilma/Original/StreetView.pm27
1 files changed, 27 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Map/Tilma/Original/StreetView.pm b/perllib/FixMyStreet/Map/Tilma/Original/StreetView.pm
new file mode 100644
index 000000000..103f4c15c
--- /dev/null
+++ b/perllib/FixMyStreet/Map/Tilma/Original/StreetView.pm
@@ -0,0 +1,27 @@
+#!/usr/bin/perl
+#
+# FixMyStreet:Map
+# Adding the ability to have different 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;
+
+use strict;
+
+use constant TILE_WIDTH => 250;
+use constant TIF_SIZE_M => 5000;
+use constant TIF_SIZE_PX => 5000;
+use constant SCALE_FACTOR => TIF_SIZE_M / (TIF_SIZE_PX / TILE_WIDTH);
+use constant TILE_TYPE => 'streetview';
+
+use FixMyStreet::Map::Tilma::Original;
+
+sub display_map {
+ my ($q, %params) = @_;
+ $params{copyright} = _('Map contains Ordnance Survey data &copy; Crown copyright and database right 2010.');
+ return _display_map($q, %params);
+}
+
+1;