From fc1c4ccc6fb29d8dbd475101047632f83b516a3d Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期二, 06 四月 2021 18:21:09 +0800
Subject: [PATCH] 修复bug
---
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