Koishi 3 mesiacov pred
rodič
commit
ddf09ef95c
1 zmenil súbory, kde vykonal 7 pridanie a 21 odobranie
  1. 7 21
      src/views/cesium.vue

+ 7 - 21
src/views/cesium.vue

@@ -303,9 +303,6 @@ export default {
       // 隐藏 Cesium Logo
       viewer.cesiumWidget.creditContainer.style.display = "none";
 
-      // 替换默认光源
-      this.viewer.scene.light = directionalLight;
-
       this.viewer = viewer;
 
       this.setMapImageryProvider();
@@ -778,28 +775,17 @@ export default {
       // 设置初始视图为宁夏
       const that = this;
       this.viewer.camera.flyTo({
-        // destination: Cesium.Cartesian3.fromDegrees(
-        //   106.169866,
-        //   38.46637,
-        //   height || 8000000
-        // ),
-        // orientation: {
-        //   heading: Cesium.Math.toRadians(0),
-        //   pitch: Cesium.Math.toRadians(-90),
-        //   roll: 0.0,
-        // },
-        // duration: 1.0,
         destination: Cesium.Cartesian3.fromDegrees(
-          106.712885,
-          37.413269,
-          height || 8000
+          106.169866,
+          38.46637,
+          height || 8000000
         ),
         orientation: {
-          heading: 0.9,
-          pitch: -0.5,
-          roll: 0,
+          heading: Cesium.Math.toRadians(0),
+          pitch: Cesium.Math.toRadians(-90),
+          roll: 0.0,
         },
-        duration: 3,
+        duration: 1.0,
         complete() {
           // 为什么要加这个?因为破库地球没完全加载完成时如果执行了监听鼠标滑动事件会光速报错滑跪
           if (!that.loadDone) {