From e379abf00be8fe474337f6b192c560d81f6f099b Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期二, 16 三月 2021 20:24:03 +0800
Subject: [PATCH] 图层功能

---
 src/components/panel/ToolBoxPanel.vue |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/components/panel/ToolBoxPanel.vue b/src/components/panel/ToolBoxPanel.vue
index 54ac95a..2102ab2 100644
--- a/src/components/panel/ToolBoxPanel.vue
+++ b/src/components/panel/ToolBoxPanel.vue
@@ -252,8 +252,8 @@
           })
           var drawLayer = this.map.editTools.startMarker()
           drawLayer.setIcon(myIcon)
-          this.drawLayer.addLayer(drawLayer)
           this.setLogic(drawLayer)
+          this.drawLayer.addLayer(drawLayer)
           break
         case '绾挎爣缁�':
           var drawLayerLine = this.map.editTools.startPolyline()
@@ -318,10 +318,7 @@
     setLogic (layer) {
       layer.on('dblclick', this.L.DomEvent.stop).on('dblclick', layer.toggleEdit)
       layer.setStyle({
-        color: 'red',
-        fillColor: '#ffffff',
-        fillOpacity: 0.1,
-        fill: true
+        color: 'red'
       })
     }
   }

--
Gitblit v1.8.0