diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-06-12 17:02:19 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-06-12 17:02:19 +0100 |
commit | dba6e1f40a81c4105548b41ff3315786d779e2ae (patch) | |
tree | f01eb6ca9e1b7e1a35a04be969267b073f4a2b56 | |
parent | 5780a36614eaaa64af95860df5854527c6cf178a (diff) |
[Bromley] Remove TfL warning message, use default handling.
-rw-r--r-- | web/cobrands/bromley/map.js | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/web/cobrands/bromley/map.js b/web/cobrands/bromley/map.js index e2e8e0073..5590b2627 100644 --- a/web/cobrands/bromley/map.js +++ b/web/cobrands/bromley/map.js @@ -79,30 +79,7 @@ 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, - actions: { - found: function(layer) { - if (fixmystreet.assets.selectedFeature()) { - $('#road-warning').remove(); - return; - } - var msg = 'The location selected is a Transport for London Red Route. TfL are responsible for the reported category and can be alerted to issues via: <a href="https://tfl.gov.uk/help-and-contact/contact-us-about-streets-and-other-road-issues">Street issues</a>'; - if ( $('#road-warning').length ) { - $('#road-warning').html(msg); - } else { - $('.change_location').after('<div class="box-warning" id="road-warning">' + msg + '</div>'); - } - $('#single_body_only').val(layer.fixmystreet.body_found); - }, - - not_found: function(layer) { - if ( $('#road-warning').length ) { - $('#road-warning').remove(); - } - $('#single_body_only').val(layer.fixmystreet.body_council); - } - }, - body_found: 'TfL', - body_council: 'Bromley Council' + body: 'TfL' })); var prow_stylemap = new OpenLayers.StyleMap({ |