From ffb95c5b73c2bf11cd66b3c05955833397dc553b Mon Sep 17 00:00:00 2001 From: WX <1377869194@qq.com> Date: 星期五, 16 六月 2023 17:57:38 +0800 Subject: [PATCH] 部分功能添加完善 --- src/assets/js/Map/index.js | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/assets/js/Map/index.js b/src/assets/js/Map/index.js index 86aade2..19df86a 100644 --- a/src/assets/js/Map/index.js +++ b/src/assets/js/Map/index.js @@ -16,7 +16,6 @@ ); //椤甸潰鍒濆鍖� this.earthCtrl = new SmartEarth.EarthCtrl("cesiumContainer", { - licenseServer: "https://cim.smartearth.cn/", StaticFileBaseUrl: "/CIMSDK/", }); // this.earthCtrl.environment.disableAllEffect(); @@ -24,22 +23,23 @@ this.Viewer = this.earthCtrl._Viewer; this.Viewer.scene.skyAtmosphere.show = false; this.Viewer.scene.globe.depthTestAgainstTerrain = true; - console.log(this.earthCtrl); - console.log(SmartEarth.EarthCtrl); window.earthCtrl = this.earthCtrl; window.Viewer = this.earthCtrl._Viewer; + window.Cesium = SmartEarth.Cesium; + // debugger; Viewer.imageryLayers.removeAll(); Viewer.scene.globe.showGroundAtmosphere = false; // let colorAll = { - // point: SmartEarth.Cesium.Color.fromCssColorString("#ff0000"), - // polyline: SmartEarth.Cesium.Color.fromCssColorString("#ffff0050"), - // polygon: SmartEarth.Cesium.Color.fromCssColorString("#ffff0050"), + // point: Cesium.Color.fromCssColorString("#ff0000"), + // polyline: Cesium.Color.fromCssColorString("#ffff0050"), + // polygon: Cesium.Color.fromCssColorString("#ffff0050"), // }; // this.earthCtrl.Analysis.spaceDistance(colorAll, () => {}); + // var terrain = new SmartEarth.Cesium.CesiumTerrainProvider({ // url: config.moonTerrain, // tilingScheme: new SmartEarth.Cesium.GeographicTilingScheme({ @@ -62,7 +62,7 @@ // }; // labelEntity = earthCtrl.factory.createLabel(param); server.AddTmsLayer(config.moonTms); - + // server.AddGeoWmsLayer(); // server.AddTmsLayer('http://localhost:8080/abc'); // earthCtrl.camera.flyTo(47.5087, 23.6963, 300, 9.5, -45, 0.0, 5); -- Gitblit v1.9.3