diff options
author | Dave Arter <davea@mysociety.org> | 2019-09-03 11:26:27 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-09-03 11:26:27 +0100 |
commit | 49c74ded4275005e766a948ec47d4cc722e0567e (patch) | |
tree | 092d19f37ecf529b44966922fe20a537915dbc9a | |
parent | c2854d371b68d3c59142b74d6e4b58c200f9a45d (diff) |
[Hounslow] Re-enable trees asset layer
-rw-r--r-- | web/cobrands/hounslow/assets.js | 70 |
1 files changed, 34 insertions, 36 deletions
diff --git a/web/cobrands/hounslow/assets.js b/web/cobrands/hounslow/assets.js index ab9adc370..6bd603b8c 100644 --- a/web/cobrands/hounslow/assets.js +++ b/web/cobrands/hounslow/assets.js @@ -42,42 +42,40 @@ fixmystreet.assets.add($.extend(true, {}, defaults, { asset_item: 'bin' })); -// Disabled for now as the data is quite out of date and causing problems -// sending reports. -// fixmystreet.assets.add($.extend(true, {}, defaults, { -// http_options: { -// params: { -// TYPENAME: "trees" -// } -// }, -// asset_id_field: 'central_asset_id', -// attributes: { -// central_asset_id: 'central_asset_id', -// asset_details: 'asset_Id' -// }, -// asset_category: [ -// "Tree Danger/Obstruction", -// "Branches overhanging", -// "Damage By Tree", -// "Dead/Dying/Diseased", -// "Dying or dangerous tree", -// "Empty tree Pit", -// "Fallen or leaning tree", -// "General Maintenance and pruning", -// "Illuminated Traffic signal obstructed by vegetation", -// "Traffic signal obstructed by vegetation", -// "Pest: Tree/Shrub", -// "Pests in trees and shrubs", -// "Tree Branches Overhanging", -// "Tree Maintenance", -// "Tree causing damage to property", -// "Tree obstructing street light", -// "Trees or shrubs blocking visibility", -// "Trees or shrubs causing obstruction of highway", -// "Trees" -// ], -// asset_item: 'tree' -// })); +fixmystreet.assets.add($.extend(true, {}, defaults, { + http_options: { + params: { + TYPENAME: "trees" + } + }, + asset_id_field: 'central_asset_id', + attributes: { + central_asset_id: 'central_asset_id', + asset_details: 'asset_number' + }, + asset_category: [ + "Tree Danger/Obstruction", + "Branches overhanging", + "Damage By Tree", + "Dead/Dying/Diseased", + "Dying or dangerous tree", + "Empty tree Pit", + "Fallen or leaning tree", + "General Maintenance and pruning", + "Illuminated Traffic signal obstructed by vegetation", + "Traffic signal obstructed by vegetation", + "Pest: Tree/Shrub", + "Pests in trees and shrubs", + "Tree Branches Overhanging", + "Tree Maintenance", + "Tree causing damage to property", + "Tree obstructing street light", + "Trees or shrubs blocking visibility", + "Trees or shrubs causing obstruction of highway", + "Trees" + ], + asset_item: 'tree' +})); fixmystreet.assets.add($.extend(true, {}, defaults, { http_options: { |