Mercurial > gemma
changeset 3444:1559566662f5
client: data accuracy: Add diagram for sections.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 24 May 2019 12:05:35 +0200 |
parents | 2eeb5a69d5f2 |
children | 4a0fab451f87 3bb2d14abf8a |
files | client/src/components/layers/Layerselect.vue client/src/components/map/layers.js client/src/components/map/styles.js |
diffstat | 3 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/layers/Layerselect.vue Fri May 24 11:46:07 2019 +0200 +++ b/client/src/components/layers/Layerselect.vue Fri May 24 12:05:35 2019 +0200 @@ -75,7 +75,8 @@ if ( this.layerId === "GAUGES" || this.layerId === "STRETCHES" || - this.layerId === "BOTTLENECKS" + this.layerId === "BOTTLENECKS" || + this.layerId === "SECTIONS" ) { map.getLayer("DATAAVAILABILITY").changed(); }
--- a/client/src/components/map/layers.js Fri May 24 11:46:07 2019 +0200 +++ b/client/src/components/map/layers.js Fri May 24 12:05:35 2019 +0200 @@ -526,7 +526,8 @@ featureTypes: [ "bottlenecks_geoserver", "gauges_geoserver", - "stretches_geoserver" + "stretches_geoserver", + "sections_geoserver" ] }, source,
--- a/client/src/components/map/styles.js Fri May 24 11:46:07 2019 +0200 +++ b/client/src/components/map/styles.js Fri May 24 12:05:35 2019 +0200 @@ -278,7 +278,9 @@ (m.getLayer("STRETCHES").getVisible() && feature.getId().indexOf("stretches") > -1) || (m.getLayer("BOTTLENECKS").getVisible() && - feature.getId().indexOf("bottlenecks") > -1) + feature.getId().indexOf("bottlenecks") > -1) || + (m.getLayer("SECTIONS").getVisible() && + feature.getId().indexOf("sections") > -1) ) { s.push( new Style({