From 9eb0c9993a0be2fbb00813b7c7b0c0f2a096999c Mon Sep 17 00:00:00 2001
From: zhangshuaibao <15731629597@163.com>
Date: 星期三, 17 三月 2021 18:04:46 +0800
Subject: [PATCH] 完善左上角工具栏的点击问题

---
 src/components/plugin/MakeTation.js |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/components/plugin/MakeTation.js b/src/components/plugin/MakeTation.js
index 189619f..311f7c9 100644
--- a/src/components/plugin/MakeTation.js
+++ b/src/components/plugin/MakeTation.js
@@ -2,7 +2,7 @@
 // 娣诲姞鏂囧瓧鏍囨敞
 var TextAnnotation = {
   points: [],
-  color: 'yellow',
+  color: '',
   L: null,
   map: null,
   layers: null,
@@ -60,7 +60,7 @@
 // 娣诲姞 鐐� 鐨勬爣娉�
 let pointAnnotation = {
   points: [],
-  color: 'yellow',
+  color: '',
   L: null,
   map: null,
   layers: null,
@@ -78,7 +78,6 @@
   click: function (e) {
     let marker = L.marker(e.latlng)
     marker.addTo(pointAnnotation.map)
-    // pointAnnotation.map.panBy(L.point(e.latlng))
   },
   dblclick: function (e) {
     pointAnnotation.map.off('click', pointAnnotation.click).off('dblclick', pointAnnotation.dblclick)

--
Gitblit v1.8.0