From 92f7479c89d8573d954e5bf37a464c1bbef396eb Mon Sep 17 00:00:00 2001 From: yxl <584911253@qq.com> Date: 星期四, 13 二月 2025 15:03:14 +0800 Subject: [PATCH] commit --- src/assets/js/mapSetFunc.js | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/assets/js/mapSetFunc.js b/src/assets/js/mapSetFunc.js index 53959f6..816c19a 100644 --- a/src/assets/js/mapSetFunc.js +++ b/src/assets/js/mapSetFunc.js @@ -23,10 +23,15 @@ this.creatQueryMeta(res); break; case "aroundPoi_2": - this.addWfsLayer(res); + // this.addWfsLayer(res); + this.addTetrahedron(res); break; case "getParam": this.addTetrahedron(res); + break; + case "getTAIWAN": + this.addWfsLayer(res); + // this.addTetrahedron(res); break; case "attackentity": this.addPolyLine(res); @@ -497,14 +502,14 @@ z: 21 }; }); - positions.forEach((item,index) => { + positions.forEach((item, index) => { const particle = earthCtrl.factory.createParticleEffect("flame", item, { translation: SmartEarth.Cesium.Cartesian3.fromElements(0, 0, 0), //骞崇Щ emissionRate: 500, startScale: 15, endScale: 45, }); - if (index == positions.length/2) { + if (index == positions.length / 2) { earthCtrl.camera.flyTo(item.x, item.y, 3000, 0, -90, 0, 2); } this.layerList.push({ @@ -556,6 +561,11 @@ this.layerList.splice(i, 1); i--; } + else if (obj.func == "getTAIWAN") { + this.layerList[i].layer.destroy(); + this.layerList.splice(i, 1); + i--; + } else if (obj.func == "radarMaskScan") { this.layerList[i].layer.deleteObject(); this.layerList.splice(i, 1); -- Gitblit v1.9.3