forked from drone/command-center-dashboard

chenyao
2025-04-16 3c41f41e2e279fb5fb60cdee67ef307b611d8147
src/hooks/useMapAggregation/useMapAggregation.js
@@ -137,14 +137,12 @@
      if (arr.length !== 0) {
        returnObj.childrens = arr
      }
      console.log(returnObj, '111111')
      return returnObj
    })
  }
  // 获取事件聚合
  function getMapEventCount (params) {
    console.log(5555555)
    return getMapEvents(params).then(res => {
      const resData = res?.data?.data
      if (resData?.data) {
@@ -248,8 +246,6 @@
      return
    }
    handlerInit()
    if (newValue.eventTimeType) {
      saveParams = { area_code: newValue.selectedAreaCode, date_enum: store.state.home.eventTimeParams }
    }
@@ -260,6 +256,8 @@
    needFly = true
    if (!viewer) return
    handlerInit()
    viewer.scene.postRender.removeEventListener(determineScaling)
    initMapData(newValue.selectedAreaCode).then(() => {