aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/common_scripts.html
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2017-11-21 11:34:29 +0000
committerDave Arter <davea@mysociety.org>2018-04-10 10:42:33 +0100
commitcfacd7dc51ae92f593a7001f481199ee9021b17f (patch)
treeff55c5f3385d5f93b3d5ebee4c758fc7d67e5ab0 /templates/web/base/common_scripts.html
parent8c135e97beb5850b116275f3a76a606a9d7a705c (diff)
[BANES] Add BathNES map type & assets
BANES have some staff-only assets, so this adds a cobrand hook to enable extra JS to be included on the page for staff users. - Add custom OpenLayers build with GeoJSON support - Add grit bins/street lights/LLPG asset layers - Displays non-BANES street light assets in grey - Add adopted highways to map This means USRNs will be set for reports made by members of the public. To keep the map simple, however, the highways layer is invisible to non-staff users.
Diffstat (limited to 'templates/web/base/common_scripts.html')
-rw-r--r--templates/web/base/common_scripts.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/web/base/common_scripts.html b/templates/web/base/common_scripts.html
index cf9692128..3d923f33f 100644
--- a/templates/web/base/common_scripts.html
+++ b/templates/web/base/common_scripts.html
@@ -46,7 +46,7 @@ IF c.user_exists AND (c.user.from_body OR c.user.is_superuser);
END;
IF bodyclass.match('mappage');
- FOR script IN map_js;
+ FOR script IN map_js.merge(c.cobrand.call_hook('map_js_extra', c));
IF script.match('^/');
scripts.push(version(script));
ELSE;