forked from drone/command-center-dashboard

shuishen
2025-04-09 052669ad57543a06b73b26fffdf0c5217b9389ad
src/views/Home/useMapAggregation/useMapAggregation.js
@@ -203,7 +203,7 @@
    flyTo({ longitude, latitude }, 0, height)
  }
  const userAreaPosition = computed(() => store.state.home.userAreaPosition);
  const userAreaPosition = computed(() => store.state.home.userAreaPosition)
  const setCenterPosition = (position) => {
    store.commit('setCurrentAreaPosition', position)
@@ -345,6 +345,8 @@
    // 加载边界
    Cesium.GeoJsonDataSource.load(item.gJson).then(dataSource => {
      console.log(dataSource, item.gJson)
      viewer.dataSources.add(dataSource)
      item.BJDataSource = dataSource // 保存数据源以便后续删除
      // 获取数据源中的实体
@@ -357,7 +359,7 @@
          alphaPower: 1.3
        })
        entity.polygon.extrudedHeight = (entity.propertyNames.length || 1) * 500
        entity.polygon.extrudedHeight = (entity.properties.childrenNum._value || 1) * 500
        entity.polygon.material = material
        entity.polygon.outline = false // 显示边框