From 25ad6779e118f2f01e9cda45c67f7b27d55a984a Mon Sep 17 00:00:00 2001
From: surprise <15810472099@163.com>
Date: 星期二, 17 十月 2023 18:04:43 +0800
Subject: [PATCH] 图层管理临时图层,sdk包更新

---
 src/assets/js/Map/index.js |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/assets/js/Map/index.js b/src/assets/js/Map/index.js
index e8ccb9f..0315911 100644
--- a/src/assets/js/Map/index.js
+++ b/src/assets/js/Map/index.js
@@ -27,12 +27,15 @@
     //椤甸潰鍒濆鍖�
     this.earthCtrl = new SmartEarth.EarthCtrl("cesiumContainer", {
       StaticFileBaseUrl: config.StaticFileBaseUrl,
-      ellipsoidCoordinates: "MOON2000",
+      ellipsoidCoordinates: 'MOON2000',
       timeline: true,
     });
 
-    this.earthCtrl.Viewer.scene.debugShowFramesPerSecond = true;
+ 
+    this.earthCtrl.Viewer.scene.debugShowFramesPerSecond = true
     this.earthCtrl.coreMap.scene.screenSpaceCameraController.enableCollisionDetection = true;
+    this.earthCtrl.Viewer.scene.globe.terrainExaggeration = 1.00001
+ 
 
     window.earthCtrl = this.earthCtrl;
 
@@ -46,7 +49,10 @@
 
     sgworld.Creator.SimpleGraphic.edit(true, { editProp: false });
     //=======================
-    // window.Viewer.imageryLayers.removeAll();
+    //璁剧疆鐞冧綋棰滆壊
+    window.Viewer.scene.globe.baseColor = new Cesium.Color.fromCssColorString('#A9A9A9');
+    //娓呴櫎鎵�鏈夐粯璁ゅ浘灞� 
+    window.Viewer.imageryLayers.removeAll();
     window.setLayer();
 
     Viewer.scene.globe.depthTestAgainstTerrain = false; // 寮�鍚繁搴︽祴璇�
@@ -78,6 +84,7 @@
       if (Cesium.defined(cartesian)) {
 
         if (cartesian.id.shpType && cartesian.id.shpType == 'temporaryLayer') {
+
           that.setEditTemporaryLayer()
         }
 
@@ -87,7 +94,9 @@
   setEditTemporaryLayer(res) {
     // store.state.editTemporaryId = res;
     // console.log(store.state.editTemporaryId)
+
     if (store.state.editTemporaryId) {
+
       store.state.setEditTemporaryShow = true;
     }
   },

--
Gitblit v1.9.3