指定相机初始位置,优化科考轨迹列表显示效果。

This commit is contained in:
hym 2024-09-29 17:12:39 +08:00
parent 54c0b11ab2
commit 9463c42e59
2 changed files with 17 additions and 4 deletions

View File

@ -448,6 +448,11 @@ export default {
this.viewer.scene.globe.showGroundAtmosphere = false this.viewer.scene.globe.showGroundAtmosphere = false
this.viewer.scene.postProcessStages.fxaa.enabled = true this.viewer.scene.postProcessStages.fxaa.enabled = true
this.viewer.camera.setView({
//
destination: Cesium.Cartesian3.fromDegrees(110, 18, 10000000)
});
// //
this.viewer.imageryLayers.get(0).show = false this.viewer.imageryLayers.get(0).show = false

View File

@ -372,6 +372,11 @@ export default {
this.viewer.scene.globe.showGroundAtmosphere = false this.viewer.scene.globe.showGroundAtmosphere = false
this.viewer.scene.postProcessStages.fxaa.enabled = true this.viewer.scene.postProcessStages.fxaa.enabled = true
this.viewer.camera.setView({
//
destination: Cesium.Cartesian3.fromDegrees(110, 18, 10000000)
});
// Cesium Ctrl + // Cesium Ctrl +
modifyCesiumMouseWheel(this.viewer); modifyCesiumMouseWheel(this.viewer);
@ -676,7 +681,7 @@ export default {
.guiji { .guiji {
width: 100%; width: 100%;
height: auto; height: auto;
margin: 70px 0; margin: 50px 0;
margin-bottom: 0; margin-bottom: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -700,12 +705,15 @@ export default {
position: relative; position: relative;
width: 100%; width: 100%;
height: 800px; height: 800px;
display: flex;
/* 导航列表居中显示 */
justify-content: center;
align-items: center;
.daohang { .daohang {
position: absolute; position: absolute;
top: 50px; top: 20px;
left: 25%; max-width: 50%;
width: 50%;
height: 60px; height: 60px;
background: rgba($color: #000, $alpha: 0.7); background: rgba($color: #000, $alpha: 0.7);
border-radius: 10px; border-radius: 10px;