月球大数据地理空间分析展示平台-【前端】-月球2期前端
Surpriseplus
2023-07-13 f6dd93cb0d1b0fe17674e948f0daf6ceb792bb55
src/assets/js/Map/index.js
@@ -8,7 +8,6 @@
  Viewer: null,
  //地图初始化
  init3DMap() {
    //设置月球坐标系
    SmartEarth.Cesium.Ellipsoid.WGS84 = new SmartEarth.Cesium.Ellipsoid(
      1737400.0,
@@ -18,7 +17,7 @@
    //页面初始化
    this.earthCtrl = new SmartEarth.EarthCtrl("cesiumContainer", {
      StaticFileBaseUrl: config.StaticFileBaseUrl,
      ellipsoidCoordinates: 'MOON'
      ellipsoidCoordinates: "MOON",
    });
    // this.earthCtrl.environment.disableAllEffect();
@@ -26,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;
@@ -37,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);
@@ -51,13 +48,11 @@
      tilingScheme: new Cesium.GeographicTilingScheme({
        ellipsoid: Cesium.Ellipsoid.MOON,
      }),
    });
    window.Viewer.terrainProvider = terrain;
    // server.AddTmsLayer("http://172.16.2.10:50001/sj_raster/v6/service/10003901/1");
    // server.AddGeoWmsLayer();
    // var param = {
@@ -80,6 +75,8 @@
    // //添加鼠标左击事件
    // this.addMouseLeftClickEvents();
    // this.addMouseMouseMoveEvents();
  },
  //鼠标左键点击事件添加
  addMouseLeftClickEvents() {