diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-08-03 14:25:21 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-08-03 21:33:17 +0100 |
commit | 7e2463f04c67091423dcfb3eec3536d4791103e1 (patch) | |
tree | 44f26812056d18f77a8f6c30de5106d6bc3f38ba | |
parent | d90f4c2587380831d3cb6ed431a0c9c002575702 (diff) |
[Bromley] Fix selection on TfL red routes.
-rw-r--r-- | web/cobrands/bromley/map.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/web/cobrands/bromley/map.js b/web/cobrands/bromley/map.js index 5590b2627..8ad2b328b 100644 --- a/web/cobrands/bromley/map.js +++ b/web/cobrands/bromley/map.js @@ -79,7 +79,17 @@ fixmystreet.assets.add($.extend(true, {}, defaults, { asset_category: ["Blocked drains", "Faulty street light", 'Faulty street sign', 'Floral displays', 'Grass needs cutting', 'Obstructions (skips, A boards)', 'Overhanging vegetation from private land', 'Pavement defect', 'Public Tree related issue', "Road defect"], non_interactive: true, road: true, - body: 'TfL' + body: 'Bromley Council', + actions: { + found: function(layer, feature) { + if (!fixmystreet.assets.selectedFeature()) { + $('#single_body_only').val('TfL'); + } + }, + not_found: function(layer) { + $('#single_body_only').val(''); + } + } })); var prow_stylemap = new OpenLayers.StyleMap({ |