指定相机初始位置,优化科考轨迹列表显示效果。
This commit is contained in:
parent
54c0b11ab2
commit
9463c42e59
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue