diff options
author | Struan Donald <struan@exo.org.uk> | 2019-04-17 17:14:09 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-08-30 13:13:42 +0100 |
commit | 0cdcad50334b587b574748019a724cd9e8c79ddd (patch) | |
tree | daaa6a57a4bc0d897084064ff6537af8e6a965fd | |
parent | ea1d29bce23145befedc227c2cb6a8ca7e3e5613 (diff) |
[Northamptonshire] add roadworks.org layer
Fixes mysociety/fixmystreet-commercial#1293
-rw-r--r-- | templates/web/northamptonshire/footer_extra_js.html | 2 | ||||
-rw-r--r-- | web/cobrands/northamptonshire/js.js | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/templates/web/northamptonshire/footer_extra_js.html b/templates/web/northamptonshire/footer_extra_js.html index c17d2777e..dc87babce 100644 --- a/templates/web/northamptonshire/footer_extra_js.html +++ b/templates/web/northamptonshire/footer_extra_js.html @@ -4,6 +4,8 @@ IF bodyclass.match('mappage'); version('/cobrands/fixmystreet/assets.js'), version('/cobrands/fixmystreet-uk-councils/alloy.js'), version('/vendor/OpenLayers.Projection.OrdnanceSurvey.js'), + version('/cobrands/fixmystreet-uk-councils/roadworks.js'), + version('/cobrands/northamptonshire/js.js'), version('/cobrands/northamptonshire/assets.js'), version('/cobrands/highways/assets.js'), version('/cobrands/fixmystreet-uk-councils/council_validation_rules.js'), diff --git a/web/cobrands/northamptonshire/js.js b/web/cobrands/northamptonshire/js.js new file mode 100644 index 000000000..286b24551 --- /dev/null +++ b/web/cobrands/northamptonshire/js.js @@ -0,0 +1,19 @@ +(function(){ + +if (!fixmystreet.maps) { + return; +} + +var org_id = '1089'; +var body = "Northamptonshire County 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 +}); + +})(); |