From aaf1f998766b27ac10094d29de552178418c0b14 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 14 Mar 2022 15:05:51 +0800
Subject: [PATCH] 处理内存泄漏的问题

---
 src/components/map/components/mapPopup.vue |   24 ------------------------
 1 files changed, 0 insertions(+), 24 deletions(-)

diff --git a/src/components/map/components/mapPopup.vue b/src/components/map/components/mapPopup.vue
index c3af8c7..6b91926 100644
--- a/src/components/map/components/mapPopup.vue
+++ b/src/components/map/components/mapPopup.vue
@@ -481,7 +481,6 @@
             fullscreen: false,
             fullScreenUrl: '/img/icon/bigScreen.png',
             addTagName: '',
-            addTagLayer: null,
             addIconFromcolumn: [
                 // 顺序不要随便换
                 {
@@ -1023,11 +1022,6 @@
 
             this.$store.commit('SET_ADDTAGPOPUP', false)
 
-            //   if (this.addTagLayer == null) {
-            //     this.addTagLayer = new global.DC.HtmlLayer("addTagLayer");
-            //     global.viewer.addLayer(this.addTagLayer);
-            //   }
-
             // 2022.3.2对接接口
             // 新增标签
             const data = {
@@ -1056,24 +1050,6 @@
                     // list: [data],
                     add: true
                 })
-                // const divIcon = new global.DC.DivIcon(
-                //   new global.DC.Position(
-                //     Number(that.addTagPosition.lng),
-                //     Number(that.addTagPosition.lat),
-                //     0
-                //   ),
-                //   `
-                //                 <div class="tag-entitys-box">
-                //                     <div class="tag-content">
-                //                         ${that.addTagName}
-                //                     </div>
-                //                     <div class="tag-angle-content">
-                //                         <img src="https://map.hit.edu.cn/images/tarrow_xq.png">
-                //                     </div>
-                //                 </div>
-                //             `
-                // );
-                // this.addTagLayer.addOverlay(divIcon);
             }
         },
 

--
Gitblit v1.9.3