aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2019-06-12 17:52:19 +0100
committerStruan Donald <struan@exo.org.uk>2019-09-27 17:18:57 +0100
commit9d6f5fa066644c64fba62a7ad38d001712408e30 (patch)
tree235c8c51f99e738f75b0139320e493095d1c6673
parenteffcb0f3043f3684e94db4866d0b434440e8ba53 (diff)
[IsleOfWight] roadworks.org integration
-rw-r--r--templates/web/isleofwight/footer_extra_js.html5
-rw-r--r--web/cobrands/isleofwight/js.js12
2 files changed, 16 insertions, 1 deletions
diff --git a/templates/web/isleofwight/footer_extra_js.html b/templates/web/isleofwight/footer_extra_js.html
index 2f5e03f86..957259890 100644
--- a/templates/web/isleofwight/footer_extra_js.html
+++ b/templates/web/isleofwight/footer_extra_js.html
@@ -1,3 +1,8 @@
[% scripts.push(
+ version('/vendor/OpenLayers.Projection.OrdnanceSurvey.js'),
+ version('/cobrands/fixmystreet-uk-councils/roadworks.js'),
+ version('/cobrands/fixmystreet-uk-councils/js.js'),
+ version('/cobrands/fixmystreet/assets.js'),
+ version('/cobrands/highways/assets.js'),
version('/cobrands/isleofwight/js.js'),
) %]
diff --git a/web/cobrands/isleofwight/js.js b/web/cobrands/isleofwight/js.js
index ed106cef6..0665a99ba 100644
--- a/web/cobrands/isleofwight/js.js
+++ b/web/cobrands/isleofwight/js.js
@@ -4,7 +4,6 @@ if (!fixmystreet.maps) {
return;
}
-
if (fixmystreet.cobrand == 'isleofwight') {
// We want the cobranded site to always display "Island Roads"
// as the destination for reports in the "Public details" section.
@@ -17,4 +16,15 @@ if (fixmystreet.cobrand == 'isleofwight') {
fixmystreet.update_public_councils_text = function() {};
}
+var org_id = '1062';
+var body = "Isle of Wight Council";
+fixmystreet.assets.add(fixmystreet.roadworks.layer_future, {
+ http_options: { params: { organisation_id: org_id } },
+ body: body
+});
+fixmystreet.assets.add(fixmystreet.roadworks.layer_planned, {
+ http_options: { params: { organisation_id: org_id } },
+ body: body
+});
+
})();