From b035823c711d43902a06838065598f4f805ab408 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期二, 06 六月 2023 14:23:42 +0800 Subject: [PATCH] 菜单修改 --- src/assets/js/Map/index.js | 34 +++++++++++++++++++++++++++++++--- 1 files changed, 31 insertions(+), 3 deletions(-) diff --git a/src/assets/js/Map/index.js b/src/assets/js/Map/index.js index 9943b91..0e4e025 100644 --- a/src/assets/js/Map/index.js +++ b/src/assets/js/Map/index.js @@ -23,10 +23,38 @@ this.Viewer = this.earthCtrl._Viewer; window.earthCtrl = this.earthCtrl; window.Viewer = this.earthCtrl._Viewer; - // //鏄剧ずfps - // sgworld._Viewer.scene.debugShowFramesPerSecond = false; - //娣诲姞鏈堢悆鍒濆鍖栧垏鐗囨湇鍔� + + Viewer.imageryLayers.removeAll(); + + Viewer.scene.globe.showGroundAtmosphere = false; + + // var terrain = new SmartEarth.Cesium.CesiumTerrainProvider({ + // url: config.moonTerrain, + // tilingScheme: new SmartEarth.Cesium.GeographicTilingScheme({ + // ellipsoid: SmartEarth.Cesium.Ellipsoid.MOON, + // }), + // }); + // Viewer.terrainProvider = terrain; + // Viewer.scene.globe.terrainExaggeration = 5; + // server.AddWmtesLayer(config.moonWmts); + // var param = { + // name: labelName, + // id: earthCtrl.factory.createUUID(), + // text: "鏂囧瓧宸ュ叿", + // font: '50pt monospace', + // outlineWidth: 2, + // fillColor: SmartEarth.Cesium.Color.RED, + // lon: 47.5087, + // lat: 23.6963, + // alt: 10 + // }; + // labelEntity = earthCtrl.factory.createLabel(param); server.AddTmsLayer(config.moonTms); + + // server.AddTmsLayer('http://localhost:8080/abc'); + + // earthCtrl.camera.flyTo(47.5087, 23.6963, 300, 9.5, -45, 0.0, 5); + // //娣诲姞榧犳爣宸﹀嚮浜嬩欢 // this.addMouseLeftClickEvents(); // this.addMouseMouseMoveEvents(); -- Gitblit v1.9.3