From 12d6cdda86f1801793c58c7693bf4664e7826ecd Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期二, 18 七月 2023 17:29:31 +0800
Subject: [PATCH] 阴影分析,坡度破向分析

---
 src/assets/js/Map/index.js |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/src/assets/js/Map/index.js b/src/assets/js/Map/index.js
index fb4f4a2..a8dfebd 100644
--- a/src/assets/js/Map/index.js
+++ b/src/assets/js/Map/index.js
@@ -14,22 +14,23 @@
       1737400.0,
       1737400.0
     );
+
+    //璐村湴绾�
+
+    SmartEarth.Cesium.ExternalParameter.changeApproximateTerrainHeights = true
     //椤甸潰鍒濆鍖�
     this.earthCtrl = new SmartEarth.EarthCtrl("cesiumContainer", {
       StaticFileBaseUrl: config.StaticFileBaseUrl,
       ellipsoidCoordinates: "MOON",
+      timeline: true
     });
-    // this.earthCtrl.environment.disableAllEffect();
 
-    this.Viewer = this.earthCtrl._Viewer;
-
-    // this.Viewer.scene.skyAtmosphere.show = false;
-
-    this.Viewer.scene.globe.depthTestAgainstTerrain = false;
 
     window.earthCtrl = this.earthCtrl;
 
     window.Viewer = this.earthCtrl._Viewer;
+
+    Viewer.scene.skyAtmosphere.show = false;
 
     window.Cesium = SmartEarth.Cesium;
 
@@ -38,8 +39,11 @@
     sgworld.Creator.SimpleGraphic.edit(true, { editProp: true });
     //=======================
     window.Viewer.imageryLayers.removeAll();
+    Viewer.animation.container.style.visibility = "hidden";
+    Viewer.timeline.container.style.visibility = "hidden";
     //=======================
-    // Viewer.scene.globe.showGroundAtmosphere = false;
+    //澶ф皵灞�
+    Viewer.scene.globe.showGroundAtmosphere = false;
 
     // server.AddTmsLayer(config.moonTms);
     server.AddWmtesLayer(config.moonWmts);

--
Gitblit v1.9.3