Browse Source

测试

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

Loading…
Cancel
Save