Mercurial > gemma
diff client/src/components/layers/Layers.vue @ 4271:315474a66589
Map: refreshing layers triggers reloading of styles
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 28 Aug 2019 11:06:47 +0200 |
parents | d85d8de8c28c |
children | e9d2573329da |
line wrap: on
line diff
--- a/client/src/components/layers/Layers.vue Tue Aug 27 17:07:16 2019 +0200 +++ b/client/src/components/layers/Layers.vue Wed Aug 28 11:06:47 2019 +0200 @@ -86,8 +86,12 @@ this.$store.commit("application/showLayers", false); }, refreshLayers() { + this.$store.commit("map/startRefreshLayers"); this.$store.commit("gauges/deleteNashSutcliffeCache"); this.$store.dispatch("map/refreshLayers"); + this.$nextTick(() => { + this.$store.commit("map/finishRefreshLayers"); + }); } } };