From 87e98d5b5efeb7a9cf6330ae03e6dd53699b7ef1 Mon Sep 17 00:00:00 2001 From: surprise <15810472099@163.com> Date: 星期一, 15 一月 2024 17:10:25 +0800 Subject: [PATCH] 代码更新 --- src/components/map/viewer.vue | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/components/map/viewer.vue b/src/components/map/viewer.vue index b6ee453..3d403bc 100644 --- a/src/components/map/viewer.vue +++ b/src/components/map/viewer.vue @@ -97,12 +97,14 @@ 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/", + StaticFileBaseUrl: "../../../JSJKZHGS/static/CimSDK/", }, {}, {}, @@ -128,6 +130,9 @@ window.Viewer = sgworld._Viewer; window.viewer = sgworld._Viewer; sgworld._Viewer.scene.moon.show = false; + // Viewer.terrainProvider=Cesium.createWorldTerrain() + //鏄剧ずfps + sgworld._Viewer.scene.debugShowFramesPerSecond = true; window.sgwfs = new SmartEarth.WFSTool(sgworld._Viewer, Cesium); Viewer.shadows = false; //娣卞害妫�娴� @@ -206,7 +211,7 @@ mapViewer.addClick(); - + }); let size = this.detectZoom(); this.scale = (100 / size).toFixed(2); @@ -395,7 +400,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 +414,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 +424,7 @@ tileMatrixSetID: "GoogleMapsCompatible", })) layer1.name = "澶╁湴鍥�" - layer1.show= false; + layer1.show = false; }, //鍒濆鍖栧脊绐椾簨浠� -- Gitblit v1.9.3