aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map/OSM/TonerLite.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-11-14 12:32:28 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-11-15 15:57:38 +0000
commit5846b85b117714041be38ae4a79c2a849aba73ae (patch)
tree1b015825325dd8f433640f9553c892336a802738 /perllib/FixMyStreet/Map/OSM/TonerLite.pm
parent15acb885f5240f63a5e19c4474851291518f0677 (diff)
Move map JS to code, to be used on all pages.
Diffstat (limited to 'perllib/FixMyStreet/Map/OSM/TonerLite.pm')
-rw-r--r--perllib/FixMyStreet/Map/OSM/TonerLite.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Map/OSM/TonerLite.pm b/perllib/FixMyStreet/Map/OSM/TonerLite.pm
index b0d12c453..b50611f3d 100644
--- a/perllib/FixMyStreet/Map/OSM/TonerLite.pm
+++ b/perllib/FixMyStreet/Map/OSM/TonerLite.pm
@@ -16,7 +16,12 @@ use strict;
sub map_type { 'OpenLayers.Layer.Stamen' }
-sub map_template { 'osm-toner-lite' }
+sub map_javascript { [
+ '/vendor/OpenLayers/OpenLayers.fixmystreet.js',
+ "https://stamen-maps.a.ssl.fastly.net/js/tile.stamen.js?v1.3.0",
+ '/js/map-OpenLayers.js',
+ '/js/map-toner-lite.js',
+] }
sub copyright {
'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.'