月球大数据地理空间分析展示平台-【前端】-月球2期前端
Surpriseplus
2023-07-13 f6dd93cb0d1b0fe17674e948f0daf6ceb792bb55
src/assets/js/Map/index.js
@@ -17,7 +17,7 @@
    //页面初始化
    this.earthCtrl = new SmartEarth.EarthCtrl("cesiumContainer", {
      StaticFileBaseUrl: config.StaticFileBaseUrl,
      ellipsoidCoordinates: 'MOON'
      ellipsoidCoordinates: "MOON",
    });
    // this.earthCtrl.environment.disableAllEffect();
@@ -25,7 +25,7 @@
    // this.Viewer.scene.skyAtmosphere.show = false;
    // this.Viewer.scene.globe.depthTestAgainstTerrain = false;
    this.Viewer.scene.globe.depthTestAgainstTerrain = false;
    window.earthCtrl = this.earthCtrl;
@@ -36,12 +36,10 @@
    window.sgworld = earthCtrl;
    sgworld.Creator.SimpleGraphic.edit(true, { editProp: true });
    //=======================
    window.Viewer.imageryLayers.removeAll();
    //=======================
    // Viewer.scene.globe.showGroundAtmosphere = false;
    // server.AddTmsLayer(config.moonTms);
    server.AddWmtesLayer(config.moonWmts);
@@ -50,13 +48,11 @@
      tilingScheme: new Cesium.GeographicTilingScheme({
        ellipsoid: Cesium.Ellipsoid.MOON,
      }),
    });
    window.Viewer.terrainProvider = terrain;
    window.Viewer.scene.globe.terrainExaggeration = 1.0000001
    // server.AddTmsLayer("http://172.16.2.10:50001/sj_raster/v6/service/10003901/1");
    // server.AddGeoWmsLayer();
    // var param = {
@@ -79,6 +75,8 @@
    // //添加鼠标左击事件
    // this.addMouseLeftClickEvents();
    // this.addMouseMouseMoveEvents();
  },
  //鼠标左键点击事件添加
  addMouseLeftClickEvents() {