aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-02-25 14:48:03 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-02-25 14:48:03 +0000
commitaa7dc8b25d8d267752e7654868ec5f4bf4e7565e (patch)
tree1eb63668067cd4131e1e407b470baeb94f8816c5
parent51557d1321a951566885bc353c95d246ef5070b3 (diff)
[Buckinghamshire] Tidy up asset attributes.
-rw-r--r--web/cobrands/buckinghamshire/assets.js25
1 files changed, 1 insertions, 24 deletions
diff --git a/web/cobrands/buckinghamshire/assets.js b/web/cobrands/buckinghamshire/assets.js
index 2f69ba6f6..e0b6f729b 100644
--- a/web/cobrands/buckinghamshire/assets.js
+++ b/web/cobrands/buckinghamshire/assets.js
@@ -21,7 +21,7 @@ var defaults = {
asset_id_field: 'central_as',
attributes: {
central_asset_id: 'central_as',
- site_code: 'Site_code'
+ site_code: 'site_code'
},
geometryName: 'msGeometry',
srsName: "EPSG:3857",
@@ -35,10 +35,6 @@ fixmystreet.assets.add($.extend(true, {}, defaults, {
TYPENAME: "Grit_Bins"
}
},
- attributes: {
- central_asset_id: 'central_as',
- site_code: 'site_code' // different capitalisation, sigh
- },
asset_category: ["Salt bin damaged", "Salt bin refill"],
asset_item: 'grit bin'
}));
@@ -106,10 +102,6 @@ var streetlight_code_to_type = {
var labeled_defaults = $.extend(true, {}, defaults, {
select_action: true,
stylemap: streetlight_stylemap,
- attributes: {
- central_asset_id: 'central_as',
- site_code: 'site_code'
- },
feature_code: 'feature_id',
actions: {
asset_found: function(asset, config) {
@@ -169,9 +161,6 @@ fixmystreet.assets.add($.extend(true, {}, labeled_defaults, {
TYPENAME: "Beacons"
}
},
- attributes: {
- central_asset_id: 'central_as',
- },
asset_category: [
'Belisha Beacon broken',
],
@@ -185,9 +174,6 @@ fixmystreet.assets.add($.extend(true, {}, labeled_defaults, {
TYPENAME: "Beacon_Column"
}
},
- attributes: {
- central_asset_id: 'central_as',
- },
asset_category: [
'Belisha Beacon broken',
],
@@ -201,9 +187,6 @@ fixmystreet.assets.add($.extend(true, {}, labeled_defaults, {
TYPENAME: "Crossings"
}
},
- attributes: {
- central_asset_id: 'central_as',
- },
feature_code: 'asset_no',
asset_category: [
'Traffic lights & crossings problems with buttons, beep or lamps',
@@ -218,9 +201,6 @@ fixmystreet.assets.add($.extend(true, {}, labeled_defaults, {
TYPENAME: "Signs_Union"
}
},
- attributes: {
- central_asset_id: 'central_as',
- },
asset_category: [
'Sign light not working',
'Sign problem',
@@ -234,9 +214,6 @@ fixmystreet.assets.add($.extend(true, {}, defaults, {
TYPENAME: "Gullies"
}
},
- attributes: {
- central_asset_id: 'central_as',
- },
asset_category: [
'Blocked drain'
],