aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChris Mytton <chrismytton@gmail.com>2019-12-19 15:37:57 +0000
committerChris Mytton <chrism@mysociety.org>2020-02-20 14:01:10 +0000
commit0f7037f9db5d73c1020468e68ce852e585ba6a19 (patch)
tree64abe5f5a8b1a058a028341382becde70196a082 /web
parent91646c4c242764462ced2e693c2955184cbc319f (diff)
[Peterborough] Add tree layers
Two layers, one for tree points, the other for tree groups.
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/peterborough/assets.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/web/cobrands/peterborough/assets.js b/web/cobrands/peterborough/assets.js
index 185289011..7bc1df574 100644
--- a/web/cobrands/peterborough/assets.js
+++ b/web/cobrands/peterborough/assets.js
@@ -37,4 +37,36 @@ fixmystreet.assets.add(defaults, {
name: "Adopted Highways"
});
+fixmystreet.assets.add(defaults, {
+ http_options: {
+ url: "https://tilma.staging.mysociety.org/mapserver/peterborough",
+ params: {
+ TYPENAME: "tree_groups"
+ }
+ },
+ asset_id_field: 'TREE_CODE',
+ attributes: {
+ tree_code: 'TREE_CODE'
+ },
+ asset_type: 'area',
+ asset_group: 'Trees',
+ asset_item: 'tree group'
+});
+
+fixmystreet.assets.add(defaults, {
+ http_options: {
+ url: "https://tilma.staging.mysociety.org/mapserver/peterborough",
+ params: {
+ TYPENAME: "tree_points"
+ }
+ },
+ asset_id_field: 'TREE_CODE',
+ attributes: {
+ tree_code: 'TREE_CODE'
+ },
+ asset_type: 'spot',
+ asset_group: 'Trees',
+ asset_item: 'tree'
+});
+
})();