diff options
author | Struan Donald <struan@exo.org.uk> | 2020-07-01 12:02:09 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2020-09-09 13:53:57 +0100 |
commit | 605bf09d3d37b2421e7a424f03a7219372d01acb (patch) | |
tree | 0268ca0b323c137627910ed9ba6d9589135e2a3d /web | |
parent | f98bb79a77866fb08ec95f5e64f07faa0ba42ceb (diff) |
[Peterborough] litter and dog bin assets
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/peterborough/assets.js | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/web/cobrands/peterborough/assets.js b/web/cobrands/peterborough/assets.js index ad898caec..9470ea26f 100644 --- a/web/cobrands/peterborough/assets.js +++ b/web/cobrands/peterborough/assets.js @@ -163,4 +163,42 @@ fixmystreet.assets.add(light_defaults, { asset_item_message: '' }); +var bin_defaults = $.extend(true, {}, defaults, { + class: OpenLayers.Layer.PeterboroughVectorAsset, + select_action: true, + actions: { + asset_found: fixmystreet.message_controller.asset_found, + asset_not_found: fixmystreet.message_controller.asset_not_found + }, + attributes: { + asset_details: function() { + var a = this.attributes; + return a.Reference + ", " + a.Location; + }, + central_asset_id: 'OBJECTID' + }, + asset_id_field: 'OBJECTID', + asset_type: 'spot' +}); + +fixmystreet.assets.add(bin_defaults, { + http_options: { + params: { + TYPENAME: 'LitterBins' + } + }, + asset_category: 'Litter bin', + asset_item: 'litter bin' +}); + +fixmystreet.assets.add(bin_defaults, { + http_options: { + params: { + TYPENAME: 'DogBins' + } + }, + asset_category: 'Dog bin', + asset_item: 'dog waste bin' +}); + })(); |