wangjuncheng
2025-04-23 8a368655576fd4eb3f517610aa8b30d633f1ea84
src/utils/area.js
@@ -14,7 +14,7 @@
   // 获取 GeoJSON 中的第一个 Polygon feature
   return dataSourcePromise.then(function (dataSource) {
      viewer.dataSources.add(dataSource)
      console.log("dataSource", dataSource)
      // console.log("dataSource", dataSource)
      // 获取 GeoJSON 中的第一个 Polygon feature
      areaDataSource.push(dataSource)
@@ -25,7 +25,7 @@
      // return areaPrimitive
      const polygonEntity = dataSource.entities.values
      console.log("polygonEntity", polygonEntity)
      // console.log("polygonEntity", polygonEntity)
      const distanceDisplayCondition = new Cesium.DistanceDisplayCondition(1000, 50000000)
      polygonEntity.forEach(entity => {
         // console.log("entity", entity)
@@ -211,7 +211,7 @@
      dataSource.name = name
      // viewer.dataSources.add(dataSource)
      // 获取 GeoJSON 中的第一个 Polygon feature
      console.log("dataSource", dataSource)
      // console.log("dataSource", dataSource)
      const polygonEntity = dataSource.entities.values
      areaLineEntities.push(...polygonEntity)