From 14d6c180e4af073ddb33e0c07d7351530adec72c Mon Sep 17 00:00:00 2001 From: jihongshun <1151753686@qq.com> Date: 星期六, 27 九月 2025 14:39:47 +0800 Subject: [PATCH] bugfix --- src/views/system/flightRouteSimulation/index.vue | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/views/system/flightRouteSimulation/index.vue b/src/views/system/flightRouteSimulation/index.vue index 4040c57..3a62e7e 100644 --- a/src/views/system/flightRouteSimulation/index.vue +++ b/src/views/system/flightRouteSimulation/index.vue @@ -161,7 +161,7 @@ "pitch": current.pitch, "roll": current.roll, "zoom":current.zoom || 1, - 'wait' : 5 + 'wait' : 3 }); dealArr.push({ "lng": next.lng, @@ -501,19 +501,29 @@ let distance = 5000 //绮惧害缁村害楂樺害 getScopeTower(lon,lat,distance).then(res=>{ + console.log(res) if(res.code == 200) { + console.log(res) res.rows.forEach((data) => { this.createModel(data); }); - } }) }, createModel(data){ + console.log(data) let viewer = window['cesiumContainer'].viewer + const heading = Cesium.Math.toRadians(data.face || 0); // 鏈濅笢鍗楁柟鍚� + const pitch = 0; + const roll = 0; + const orientation = Cesium.Transforms.headingPitchRollQuaternion( + Cesium.Cartesian3.fromDegrees(data.longitude, data.latitude, data.altitude), + new Cesium.HeadingPitchRoll(heading, pitch, roll) + ); viewer.entities.add({ id: data.id, position: Cesium.Cartesian3.fromDegrees(data.longitude, data.latitude, data.altitude), + orientation: orientation, model: { uri: data?.ardTowerModel?.modelRoute, scale: 1, @@ -537,6 +547,7 @@ window['cesiumContainerYY'].viewer.entities.add({ id:data.id+ 'yytower', position: Cesium.Cartesian3.fromDegrees(data.longitude, data.latitude, data.altitude), + orientation: orientation, model: { uri: data?.ardTowerModel?.modelRoute, scale: 1, -- Gitblit v1.9.3