From 28681434422184b33a3338417f681ca1837bc91e Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 13 Sep 2022 18:21:20 +0800
Subject: [PATCH] 20220902

---
 src/main/resources/templates/febs/views/modules/leader/leaderMapSetting.html |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/leader/leaderMapSetting.html b/src/main/resources/templates/febs/views/modules/leader/leaderMapSetting.html
index 52543aa..0f0f8f6 100644
--- a/src/main/resources/templates/febs/views/modules/leader/leaderMapSetting.html
+++ b/src/main/resources/templates/febs/views/modules/leader/leaderMapSetting.html
@@ -40,7 +40,6 @@
         });
         var polyEditor = new AMap.PolyEditor(map);
 
-
         //为地图注册click事件获取鼠标点击出的经纬度坐标
         var path = [];
         // 折线的节点坐标数组,每个元素为 AMap.LngLat 对象
@@ -87,8 +86,6 @@
 
         $createPolygon.on('click', function () {
             febs.alert.success('点击新建');
-            polyEditor.close();
-            polyEditor.open();
         });
 
         $open.on('click', function () {
@@ -105,6 +102,8 @@
                 lineJoin: 'round' // 折线拐点连接处样式
             });
             // 将折线添加至地图实例
+            // map.cleanData(polyline);
+
             map.add(polyline);
         });
 

--
Gitblit v1.9.1