PolylineRegionalExcavationFun2() {
import("./data/安徽省.json").then((res) => {
console.log(`res`, res);
let features = res.features;
let positionArray = [];
let borderLinePositionArray = [];
// 获取区域的经纬度坐标
if (features[0]?.geometry?.coordinates[0]?.length) {
//设置地表透明
let globe = viewer.scene.globe;
globe.depthTestAgainstTerrain = false;
viewer.scene.skyAtmosphere.show = false; //关闭大气层阴影
// screenSpaceCameraController获取用于摄像机输入处理的控制器;
// enableCollisionDetectio启用或禁用摄影机与地形的碰撞检测,
// 为true不会进入地下;
// scene.screenSpaceCameraController.enableCollisionDetection = false;
globe.translucency.frontFaceAlphaByDistance =
new Ce