智慧园区前端大屏
shuishen
2024-12-02 553614ce8f6f6b7a2cfbe1572cd7edf597dbb9aa
src/views/rs/components/box/dataContent.vue
@@ -137,7 +137,7 @@
            <li>${row.riskLevelName || ''}</li>
            </div>`
    let divIcon = new DC.DivIcon(
      new DC.Position(row.lng, row.lat, 64),
      new DC.Position(row.lng, row.lat, row.ele || 64),
      `<div class="public-map-popup-three">
                    ${iconEl}
                  </div>`
@@ -210,6 +210,7 @@
  EventBus.off('rsTabChange', spaceTabChange)
  if (curSelect.value) EventBus.emit('restHandleDelChange', `4`)
  destroyPupoLayers()
  addPupoLayers = null
})
// 销毁
@@ -217,6 +218,8 @@
  let arr = Object.keys(addPupoLayers)
  arr.forEach(i => {
    addPupoLayers[i] && window.$viewer && window.$viewer.removeLayer(addPupoLayers[i])
    addPupoLayers[i] = null
    delete addPupoLayers[i]
  })
  addPupoLayers = {}
}