|
@ -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); |
|
|