aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@balti.ukcod.org.uk>2010-11-24 19:32:17 +0000
committerMatthew Somerville <matthew@balti.ukcod.org.uk>2010-11-24 19:32:17 +0000
commita821c15c33c59bb8ff3bb5f5722a15f2ca527b6c (patch)
treed31a8d6b7d15b6fe9704c14536e506b944176c3e /perllib/FixMyStreet/Map.pm
parentb63492a28b56cb05396bc41e66e312eacf3ad62a (diff)
Have FixMyStreet::Map return the JS it needs.
Diffstat (limited to 'perllib/FixMyStreet/Map.pm')
-rw-r--r--perllib/FixMyStreet/Map.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Map.pm b/perllib/FixMyStreet/Map.pm
index 0aae808b9..315de0958 100644
--- a/perllib/FixMyStreet/Map.pm
+++ b/perllib/FixMyStreet/Map.pm
@@ -24,6 +24,12 @@ use constant TIF_SIZE_M => mySociety::Config::get('TILES_TIFF_SIZE_METRES');
use constant TIF_SIZE_PX => mySociety::Config::get('TILES_TIFF_SIZE_PIXELS');
use constant SCALE_FACTOR => TIF_SIZE_M / (TIF_SIZE_PX / TILE_WIDTH);
+sub header_js {
+ return '
+<script type="text/javascript" src="/js/map-tilma.js"></script>
+';
+}
+
# display_map Q PARAMS
# PARAMS include:
# EASTING, NORTHING for the centre point of the map