Mercurial > gemma
diff client/src/components/layers/Layerselect.vue @ 3434:9fba1be118e7
client: data accuracy: Show diagrams for gauges, bottlenecks and stretches on map.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 24 May 2019 09:51:04 +0200 |
parents | 57255fda7594 |
children | 1559566662f5 |
line wrap: on
line diff
--- a/client/src/components/layers/Layerselect.vue Fri May 24 09:40:43 2019 +0200 +++ b/client/src/components/layers/Layerselect.vue Fri May 24 09:51:04 2019 +0200 @@ -72,6 +72,13 @@ map .getLayer(this.layerId) .setVisible(!map.getLayer(this.layerId).getVisible()); + if ( + this.layerId === "GAUGES" || + this.layerId === "STRETCHES" || + this.layerId === "BOTTLENECKS" + ) { + map.getLayer("DATAAVAILABILITY").changed(); + } } else { this.openLayersMaps.forEach(m => { m.getLayer(this.layerId).setVisible(