diff options
author | Chris Mytton <chrismytton@gmail.com> | 2019-12-19 15:37:57 +0000 |
---|---|---|
committer | Chris Mytton <chrism@mysociety.org> | 2020-02-20 14:01:10 +0000 |
commit | 0f7037f9db5d73c1020468e68ce852e585ba6a19 (patch) | |
tree | 64abe5f5a8b1a058a028341382becde70196a082 /web | |
parent | 91646c4c242764462ced2e693c2955184cbc319f (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.js | 32 |
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' +}); + })(); |