From f7ba8b6aab4a763feee8938e93c97079b52baf1d Mon Sep 17 00:00:00 2001
From: wangqi <magical1908@outlook.com>
Date: 星期二, 30 三月 2021 12:30:44 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/develop' into develop

---
 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