changeset 1157:403b99a43f54

retain profile line when switching to other draw tools
author Markus Kottlaender <markus@intevation.de>
date Tue, 13 Nov 2018 13:40:35 +0100
parents 9bef99a4a15f
children da75faa8043f
files client/src/drawtool/Drawtool.vue
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/drawtool/Drawtool.vue	Tue Nov 13 13:32:06 2018 +0100
+++ b/client/src/drawtool/Drawtool.vue	Tue Nov 13 13:40:35 2018 +0100
@@ -145,7 +145,6 @@
     },
     enableCutTool() {
       const cutVectorSrc = this.getLayerByName("Cut Tool").data.getSource();
-      cutVectorSrc.clear();
       const cutTool = new Draw({
         source: cutVectorSrc,
         type: "LineString",
@@ -163,9 +162,6 @@
     },
     disableCutTool() {
       this.$store.commit("map/setCurrentMeasurement", null);
-      this.getLayerByName("Cut Tool")
-        .data.getSource()
-        .clear();
       this.openLayersMap.removeInteraction(this.cutTool);
       this.$store.commit("map/cutTool", null);
     },