Browse Source

测试

master
DIAMOND 1 year ago
parent
commit
2701c590e5
  1. 9
      src/views/earthMap/edit/EarthComp.vue

9
src/views/earthMap/edit/EarthComp.vue

@ -825,7 +825,7 @@
}); });
} }
// 20231222 //
async fly(){ async fly(){
let position, rotation, viewDistance, duration; let position, rotation, viewDistance, duration;
const sceneId = this.userStore.userInfo?.sceneId; const sceneId = this.userStore.userInfo?.sceneId;
@ -839,12 +839,12 @@
order: 'asc', order: 'asc',
} }
}, { isTransformResponse: false }).then((response) => { }, { isTransformResponse: false }).then((response) => {
console.log("newfly",response); console.log("fly",response);
// 屿 // 屿
this.sceneInfo = response.result.records; this.sceneInfo = response.result.records;
return response.result.records; return response.result.records;
}).then((res)=>{ }).then((res)=>{
// //
position = [res[0].cameraLon, res[0].cameraLat, res[0].cameraAltitude]; position = [res[0].cameraLon, res[0].cameraLat, res[0].cameraAltitude];
rotation = [res[0].rotationX, res[0].rotationY, res[0].rotationZ]; rotation = [res[0].rotationX, res[0].rotationY, res[0].rotationZ];
viewDistance = res[0].viewDistance; viewDistance = res[0].viewDistance;
@ -858,7 +858,6 @@
} }
setLoginPoint(data) { setLoginPoint(data) {
let position = [data.lon, data.lat, 0]; let position = [data.lon, data.lat, 0];
let rotation = [data.rotationX, data.rotationY, data.rotationZ]; let rotation = [data.rotationX, data.rotationY, data.rotationZ];
@ -896,7 +895,6 @@
}; };
} }
// //
setIconByRef(ref, el) { setIconByRef(ref, el) {
const status = this.statusByNodeId.get(ref); const status = this.statusByNodeId.get(ref);
@ -920,6 +918,7 @@
img.setAttribute('style', 'width:16px;height:16px;margin-top:7px'); img.setAttribute('style', 'width:16px;height:16px;margin-top:7px');
} }
} }
/* 使用async/await 处理异步方法顺序执行。成功的操作放到try里,失败的放在catch里 */ /* 使用async/await 处理异步方法顺序执行。成功的操作放到try里,失败的放在catch里 */
async createBBHLine(earthUI= null) { async createBBHLine(earthUI= null) {
console.log("MyScene",this.userStore.userInfo?.sceneId); console.log("MyScene",this.userStore.userInfo?.sceneId);

Loading…
Cancel
Save