diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-26 11:57:21 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-26 11:57:21 +0100 |
commit | a04abdebaf280cbfbad65fabb2c64d88f9e3d72c (patch) | |
tree | 0adcfeb9a4e11737417eee488038b7894c9f50c2 /perllib/FixMyStreet/Map/Tilma | |
parent | 45f6e7e798b203df12938c4b06976fa310173093 (diff) |
Get header JS <script> out of code and into templates.
Diffstat (limited to 'perllib/FixMyStreet/Map/Tilma')
-rw-r--r-- | perllib/FixMyStreet/Map/Tilma/OpenLayers.pm | 9 | ||||
-rw-r--r-- | perllib/FixMyStreet/Map/Tilma/Original.pm | 6 |
2 files changed, 0 insertions, 15 deletions
diff --git a/perllib/FixMyStreet/Map/Tilma/OpenLayers.pm b/perllib/FixMyStreet/Map/Tilma/OpenLayers.pm index 96d0975f2..31e9eb096 100644 --- a/perllib/FixMyStreet/Map/Tilma/OpenLayers.pm +++ b/perllib/FixMyStreet/Map/Tilma/OpenLayers.pm @@ -14,15 +14,6 @@ sub TILE_WIDTH() { return $FixMyStreet::Map::map_class->tile_width; } sub SCALE_FACTOR() { return $FixMyStreet::Map::map_class->scale_factor; } sub TILE_TYPE() { return $FixMyStreet::Map::map_class->tile_type; } -sub header_js { - return ' -<script type="text/javascript" src="/jslib/OpenLayers-2.10/OpenLayers.js"></script> -<script type="text/javascript" src="/js/map-OpenLayers.js"></script> -<script type="text/javascript" src="/js/map-tilma-ol.js"></script> -<script type="text/javascript" src="/js/OpenLayers.Projection.OrdnanceSurvey.js"></script> -'; -} - # display_map C PARAMS # PARAMS include: # latitude, longitude for the centre point of the map diff --git a/perllib/FixMyStreet/Map/Tilma/Original.pm b/perllib/FixMyStreet/Map/Tilma/Original.pm index ddabf2ed5..e1ab34393 100644 --- a/perllib/FixMyStreet/Map/Tilma/Original.pm +++ b/perllib/FixMyStreet/Map/Tilma/Original.pm @@ -27,12 +27,6 @@ sub _ll_to_en { return Utils::convert_latlon_to_en( $lat, $lon ); } -sub header_js { - return ' -<script type="text/javascript" src="/js/map-tilma.js"></script> -'; -} - # display_map C PARAMS # PARAMS include: # latitude, longitude for the centre point of the map |