| | |
| | | // 获取 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) |
| | | |
| | |
| | | // 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) |
| | |
| | | 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) |