From dcd10e4906fd6f903c35791f591833b8f26af1e8 Mon Sep 17 00:00:00 2001 From: chenzeping <ChenZeping02609@163.com> Date: 星期二, 16 三月 2021 20:35:51 +0800 Subject: [PATCH] 修改 --- src/components/panel/ToolBoxPanel.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/panel/ToolBoxPanel.vue b/src/components/panel/ToolBoxPanel.vue index 2102ab2..acd445f 100644 --- a/src/components/panel/ToolBoxPanel.vue +++ b/src/components/panel/ToolBoxPanel.vue @@ -250,13 +250,15 @@ iconAnchor: [13, 16], popupAnchor: [26, -32] }) - var drawLayer = this.map.editTools.startMarker() + // eslint-disable-next-line no-case-declarations + const drawLayer = this.map.editTools.startMarker() drawLayer.setIcon(myIcon) - this.setLogic(drawLayer) this.drawLayer.addLayer(drawLayer) + this.drawLayer.addLayer(this.setLogic(drawLayer)) break case '绾挎爣缁�': - var drawLayerLine = this.map.editTools.startPolyline() + // eslint-disable-next-line no-case-declarations + const drawLayerLine = this.map.editTools.startPolyline() this.drawLayer.addLayer(drawLayerLine) this.setLogic(drawLayerLine) break @@ -271,10 +273,10 @@ this.setLogic(drawLayerPolygonJ) break case '鍦嗗舰': - var drawLayerPolygonY = this.map.editTools.startCircle() + // eslint-disable-next-line no-case-declarations + const drawLayerPolygonY = this.map.editTools.startCircle() this.drawLayer.addLayer(drawLayerPolygonY) this.setLogic(drawLayerPolygonY) - // this.drawLayer = this.map.editTools.startCircle() break case '鍒犻櫎': this.drawLayer.clearLayers() -- Gitblit v1.8.0