From 2e3851441ff6186f1a117b5334b20c6595d71d14 Mon Sep 17 00:00:00 2001
From: zhangshuaibao <15731629597@163.com>
Date: 星期四, 18 三月 2021 14:19:26 +0800
Subject: [PATCH] 完善测量功能的清除问题
---
src/components/plugin/MeaSure.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/components/plugin/MeaSure.js b/src/components/plugin/MeaSure.js
index b1e4508..ce67a00 100644
--- a/src/components/plugin/MeaSure.js
+++ b/src/components/plugin/MeaSure.js
@@ -150,10 +150,12 @@
}
const startMeasureArea = function (map, L) {
+ areaMeasure.destory()
areaMeasure.init(map, L)
}
const startMeasureLen = function (map, L) {
+ distanceMeasure.destory()
distanceMeasure.init(map, L)
}
--
Gitblit v1.8.0