Mercurial > gemma
diff client/src/store/bottlenecks.js @ 3407:7ea54c3b3fd6
afd: breaks for bottlenecks
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 23 May 2019 13:37:35 +0200 |
parents | 5914d615f703 |
children | 3138836bf840 |
line wrap: on
line diff
--- a/client/src/store/bottlenecks.js Thu May 23 13:09:49 2019 +0200 +++ b/client/src/store/bottlenecks.js Thu May 23 13:37:35 2019 +0200 @@ -33,6 +33,13 @@ namespaced: true, state: init(), getters: { + limitingFactorsPerBottleneck: state => { + if (state.bottlenecks.length === 0) return {}; + return state.bottlenecks.reduce((o, n) => { + o[n.properties.objnam] = n.properties.limiting; + return o; + }, {}); + }, orderedBottlenecks: state => { let groupedBottlenecks = {}, orderedGroups = {}; @@ -167,7 +174,8 @@ featureNS: "gemma", featurePrefix: "gemma", featureTypes: ["bottlenecks_geoserver"], - outputFormat: "application/json" + outputFormat: "application/json", + propertyNames: ["objnam", "limiting", "reference_water_levels"] }); HTTP.post( "/internal/wfs",