diff options
author | Matthew Somerville <matthew@balti.ukcod.org.uk> | 2010-11-24 19:32:17 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@balti.ukcod.org.uk> | 2010-11-24 19:32:17 +0000 |
commit | a821c15c33c59bb8ff3bb5f5722a15f2ca527b6c (patch) | |
tree | d31a8d6b7d15b6fe9704c14536e506b944176c3e /perllib/FixMyStreet | |
parent | b63492a28b56cb05396bc41e66e312eacf3ad62a (diff) |
Have FixMyStreet::Map return the JS it needs.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/Map.pm | 6 |
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 |