From b67f46b4a768b4cd72d4e463c5dffefe977ddeb7 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 02 Dec 2024 22:04:27 +0800
Subject: [PATCH] 应急空间及全局图层去除废水处理站、污水池
---
src/views/companyInfo/components/box/unitContent.vue | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/views/companyInfo/components/box/unitContent.vue b/src/views/companyInfo/components/box/unitContent.vue
index eb0f6da..a6797f8 100644
--- a/src/views/companyInfo/components/box/unitContent.vue
+++ b/src/views/companyInfo/components/box/unitContent.vue
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2023-03-10 15:27:59
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-11-27 19:15:59
+ * @LastEditTime: 2024-11-28 19:29:15
* @FilePath: \bigScreen\src\views\companyInfo\components\box\unitContent.vue
* @Description:
*
@@ -51,7 +51,7 @@
let iconEl = `<div class="map-name">${i.name}</div>
<div class="map-icon"> <img src="${img[0].value}"> </div>`
let divIcon = new DC.DivIcon(
- new DC.Position(i.lng, i.lat, 64),
+ new DC.Position(i.lng, i.lat, i.ele || 64),
`<div class="public-map-popup ${'yjc-box'}"> ${iconEl} </div>`
)
divIcon.attrParams = i
@@ -69,7 +69,7 @@
<img src="${attrParams.imageUrl}" />
</div>`
let divIcon = new DC.DivIcon(
- new DC.Position(attrParams.lng, attrParams.lat, 64),
+ new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64),
`<div class="public-map-popup-two">
${iconEl}
</div>`
@@ -85,7 +85,7 @@
divIcon.on(DC.MouseEventType.CLICK, incident)
- addTileLayers[companyInfo.name].addOverlay(divIcon)
+ addTileLayers[companyInfo.name] && addTileLayers[companyInfo.name].addOverlay(divIcon)
})
})
} else {
@@ -103,6 +103,8 @@
let arr = Object.keys(addPupoLayers)
arr.filter(i => i != 'hgyq').forEach(i => {
addPupoLayers[i] && window.$viewer && window.$viewer.removeLayer(addPupoLayers[i])
+ addPupoLayers[i] = null
+ delete addPupoLayers[i]
})
addPupoLayers = {}
}
@@ -114,8 +116,12 @@
let arr = Object.keys(addTileLayers)
arr.forEach(i => {
addTileLayers[i] && window.$viewer && window.$viewer.removeLayer(addTileLayers[i])
+ addTileLayers[i] = null
+ delete addTileLayers[i]
})
destroy()
+ addTileLayers = null
+ addPupoLayers = null
EventBus.emit('restHandleDelChange', `3-3-2`)
EventBus.emit('restHandleDelChange', `3-3-4`)
})
--
Gitblit v1.9.3