From e9a64e037bd76e6fbe5cd4b4043e27c1fb0a2e85 Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期二, 16 三月 2021 21:04:57 +0800
Subject: [PATCH] 修改
---
src/components/panel/ToolBoxPanel.vue | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/src/components/panel/ToolBoxPanel.vue b/src/components/panel/ToolBoxPanel.vue
index e7ef163..7445d55 100644
--- a/src/components/panel/ToolBoxPanel.vue
+++ b/src/components/panel/ToolBoxPanel.vue
@@ -242,8 +242,6 @@
},
choiceItem (itemT, indexT) {
this.Selecd = indexT
- // eslint-disable-next-line no-unused-vars
- const layerGroups = []
switch (itemT.label) {
case '鐐规爣缁�':
var myIcon = this.L.icon({
@@ -252,15 +250,13 @@
iconAnchor: [13, 16],
popupAnchor: [26, -32]
})
- // eslint-disable-next-line no-case-declarations
- const drawLayer = this.map.editTools.startMarker()
+ var drawLayer = this.map.editTools.startMarker()
drawLayer.setIcon(myIcon)
this.drawLayer.addLayer(drawLayer)
- this.drawLayer.addLayer(this.setLogic(drawLayer))
+ this.setLogic(drawLayer)
break
case '绾挎爣缁�':
- // eslint-disable-next-line no-case-declarations
- const drawLayerLine = this.map.editTools.startPolyline()
+ var drawLayerLine = this.map.editTools.startPolyline()
this.drawLayer.addLayer(drawLayerLine)
this.setLogic(drawLayerLine)
break
@@ -275,8 +271,7 @@
this.setLogic(drawLayerPolygonJ)
break
case '鍦嗗舰':
- // eslint-disable-next-line no-case-declarations
- const drawLayerPolygonY = this.map.editTools.startCircle()
+ var drawLayerPolygonY = this.map.editTools.startCircle()
this.drawLayer.addLayer(drawLayerPolygonY)
this.setLogic(drawLayerPolygonY)
break
@@ -322,7 +317,10 @@
setLogic (layer) {
layer.on('dblclick', this.L.DomEvent.stop).on('dblclick', layer.toggleEdit)
layer.setStyle({
- color: 'red'
+ color: 'red',
+ fillColor: '#ffffff',
+ fillOpacity: 0.1,
+ fill: true
})
}
}
--
Gitblit v1.8.0