Browse Source

固定视角

DR/4DAGE 4 năm trước cách đây
mục cha
commit
37b6f82e3a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      public/zzdemo/main.js

+ 2 - 2
public/zzdemo/main.js

@@ -42,8 +42,8 @@ const viewer=new Cesium.Viewer("global-container",{
 viewer.scene.backgroundColor = new Cesium.Color(0.0, 0.0, 0.0, 0.0); 
 viewer.scene.backgroundColor = new Cesium.Color(0.0, 0.0, 0.0, 0.0); 
 viewer._cesiumWidget._creditContainer.style.display = "none";
 viewer._cesiumWidget._creditContainer.style.display = "none";
 viewer.camera.flyTo({
 viewer.camera.flyTo({
-    destination : Cesium.Cartesian3.fromDegrees(110,35.5, 8000000.0),
-    duration:0.1
+    destination : Cesium.Cartesian3.fromDegrees(110,35.5, 9000000.0),
+    duration:0.3
 });
 });
 viewer.scene.globe.enableLighting = true
 viewer.scene.globe.enableLighting = true
 viewer.scene.skyAtmosphere.show = true;
 viewer.scene.skyAtmosphere.show = true;