comparison client/src/components/toolbar/Toolbar.vue @ 3070:a54216a0193d

client: identify tool: removed distinct enable flag
author Markus Kottlaender <markus@intevation.de>
date Wed, 17 Apr 2019 10:15:15 +0200
parents 87e0422cffa7
children 18ab67c7241a
comparison
equal deleted inserted replaced
3069:766384d0ed7a 3070:a54216a0193d
140 if (e.keyCode === 27) { 140 if (e.keyCode === 27) {
141 this.$store.commit("map/lineToolEnabled", false); 141 this.$store.commit("map/lineToolEnabled", false);
142 this.$store.commit("map/polygonToolEnabled", false); 142 this.$store.commit("map/polygonToolEnabled", false);
143 this.$store.commit("map/cutToolEnabled", false); 143 this.$store.commit("map/cutToolEnabled", false);
144 this.$store.commit("map/setCurrentMeasurement", null); 144 this.$store.commit("map/setCurrentMeasurement", null);
145 this.$store.commit("map/identifyToolEnabled", true);
146 this.openLayersMaps.forEach(m => { 145 this.openLayersMaps.forEach(m => {
147 m.getLayer("DRAWTOOL") 146 m.getLayer("DRAWTOOL")
148 .getSource() 147 .getSource()
149 .clear(); 148 .clear();
150 }); 149 });