Mercurial > gemma
diff client/src/components/map/fairway/Profiles.vue @ 1437:1cd1549aab47
fixed panning problem when drawing cross cuts
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Fri, 30 Nov 2018 10:42:00 +0100 |
parents | 7fa030127b05 |
children | a4554e942954 |
line wrap: on
line diff
--- a/client/src/components/map/fairway/Profiles.vue Fri Nov 30 09:40:39 2018 +0100 +++ b/client/src/components/map/fairway/Profiles.vue Fri Nov 30 10:42:00 2018 +0100 @@ -327,19 +327,10 @@ } }, toggleCutTool() { - if (this.selectedSurvey) { - this.cutTool.setActive(!this.cutTool.getActive()); - this.lineTool.setActive(false); - this.polygonTool.setActive(false); - this.$store.commit("map/setCurrentMeasurement", null); - - // toggle identifyTool (map events singleclick and dblclick) - this.$store.dispatch( - this.cutTool.getActive() - ? "map/disableIdentifyTool" - : "map/enableIdentifyTool" - ); - } + this.cutTool.setActive(!this.cutTool.getActive()); + this.lineTool.setActive(false); + this.polygonTool.setActive(false); + this.$store.commit("map/setCurrentMeasurement", null); }, onCopyCoordinates() { displayInfo({