月球大数据地理空间分析展示平台-【前端】-月球2期前端
Surpriseplus
2023-07-18 12d6cdda86f1801793c58c7693bf4664e7826ecd
src/assets/js/Map/index.js
@@ -14,22 +14,23 @@
      1737400.0,
      1737400.0
    );
    //贴地线
    SmartEarth.Cesium.ExternalParameter.changeApproximateTerrainHeights = true
    //页面初始化
    this.earthCtrl = new SmartEarth.EarthCtrl("cesiumContainer", {
      StaticFileBaseUrl: config.StaticFileBaseUrl,
      ellipsoidCoordinates: "MOON",
      timeline: true
    });
    // this.earthCtrl.environment.disableAllEffect();
    this.Viewer = this.earthCtrl._Viewer;
    // this.Viewer.scene.skyAtmosphere.show = false;
    this.Viewer.scene.globe.depthTestAgainstTerrain = false;
    window.earthCtrl = this.earthCtrl;
    window.Viewer = this.earthCtrl._Viewer;
    Viewer.scene.skyAtmosphere.show = false;
    window.Cesium = SmartEarth.Cesium;
@@ -38,8 +39,11 @@
    sgworld.Creator.SimpleGraphic.edit(true, { editProp: true });
    //=======================
    window.Viewer.imageryLayers.removeAll();
    Viewer.animation.container.style.visibility = "hidden";
    Viewer.timeline.container.style.visibility = "hidden";
    //=======================
    // Viewer.scene.globe.showGroundAtmosphere = false;
    //大气层
    Viewer.scene.globe.showGroundAtmosphere = false;
    // server.AddTmsLayer(config.moonTms);
    server.AddWmtesLayer(config.moonWmts);