From c7c2e23b9fdc60db8a1a4865dd8c2ffb295df34f Mon Sep 17 00:00:00 2001 From: hbao Date: Sun, 27 Feb 2022 17:48:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Map/MapGisDrawing.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Map/MapGisDrawing.vue b/src/components/Map/MapGisDrawing.vue index a2c70d31..3caf88f2 100644 --- a/src/components/Map/MapGisDrawing.vue +++ b/src/components/Map/MapGisDrawing.vue @@ -237,12 +237,14 @@ export default { // }); //还原之前图层 $("#"+this.drawingResetMap).click(function () { + console.log(that.closeMoule); + console.log(that.message); if(that.closeMoule !=null) { - if(this.message.substring(0,1) =="{"){ + if(that.message.substring(0,1) =="{"){ map.addLayer(hc_land); map.removeInteraction(draw); } - if(this.message.substring(0,1) =="["){ + if(that.message.substring(0,1) =="["){ map.addLayer(hc_landFuther); map.removeLayer(vector_drawing); }