From 9398f14feea7ad8b7d00ce7d2bb2e5362cec59d3 Mon Sep 17 00:00:00 2001
From: surprise <15810472099@163.com>
Date: 星期二, 09 一月 2024 15:20:15 +0800
Subject: [PATCH] 代码提交

---
 src/components/map/viewer.vue |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/components/map/viewer.vue b/src/components/map/viewer.vue
index b6ee453..404c08f 100644
--- a/src/components/map/viewer.vue
+++ b/src/components/map/viewer.vue
@@ -97,10 +97,12 @@
     this.$nextTick(function () {
       let that = this;
       //*********鍖椾含sdk************
+
+      // Cesium.Ion.defaultAccessToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2NzE3ZGI5NC00MzAwLTRmMzEtOTA5NS0zNzQ3YmJhOTg5MWMiLCJpZCI6NDE4NDYsImlhdCI6MTYxMjU4MDEyN30.XQkH4SpF-q3ykVvnBi_HVyJwSxTM-58SxlRG387T6TY";
       window.sgworld = new SmartEarth.EarthCtrl(
         "sdkContainer",
         {
-         StaticFileBaseUrl: "../../../static/CimSDK/",
+          StaticFileBaseUrl: "../../../static/CimSDK/",
           // StaticFileBaseUrl: "../../../SW/static/CimSDK/",
           // StaticFileBaseUrl: "../../../JSJKZHGS/static/CimSDK/",
         },
@@ -128,6 +130,8 @@
       window.Viewer = sgworld._Viewer;
       window.viewer = sgworld._Viewer;
       sgworld._Viewer.scene.moon.show = false;
+      // Viewer.terrainProvider=Cesium.createWorldTerrain()
+   
       window.sgwfs = new SmartEarth.WFSTool(sgworld._Viewer, Cesium);
       Viewer.shadows = false;
       //娣卞害妫�娴�
@@ -206,7 +210,7 @@
       mapViewer.addClick();
 
 
-    
+
     });
     let size = this.detectZoom();
     this.scale = (100 / size).toFixed(2);
@@ -395,7 +399,7 @@
       // );
       var layer = Viewer.imageryLayers.addImageryProvider(new Cesium.ArcGisMapServerImageryProvider({
         url: "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",
-       
+
       }))
       layer.name = "ARCGIS"
     },
@@ -409,7 +413,7 @@
         tileMatrixSetID: "GoogleMapsCompatible",
       }))
       layer.name = "澶╁湴鍥�";
-      layer.show= false;
+      layer.show = false;
       var layer1 = Viewer.imageryLayers.addImageryProvider(new Cesium.WebMapTileServiceImageryProvider({
         url: layerData.config.tdtZj + layerData.config.tdtToken,
         layer: "tdtAnnoLayer",
@@ -419,7 +423,7 @@
         tileMatrixSetID: "GoogleMapsCompatible",
       }))
       layer1.name = "澶╁湴鍥�"
-      layer1.show= false;
+      layer1.show = false;
     },
     //鍒濆鍖栧脊绐椾簨浠�
 

--
Gitblit v1.9.3