月球大数据地理空间分析展示平台-【中台】
WX
2023-09-21 ba88a96b97db99e4684a9392152dbdaa3ff7bcf2
src/components/MapView/moonMap.vue
@@ -133,7 +133,7 @@
      );
      //页面初始化
      this.earthCtrl = new SmartEarth.EarthCtrl("cesiumContainer", {
        //  StaticFileBaseUrl: StaticFileBaseUrl,
        StaticFileBaseUrl: StaticFileBaseUrl,
        ellipsoidCoordinates: "MOON",
      });
      this.earthCtrl.environment.disableAllEffect();
@@ -153,7 +153,10 @@
      this.getLonLat();
      var token = getToken();
      var demUrl = `${BASE_URL}/proxy/${token}/25`
      var wmtsUrl = `${BASE_URL}/proxy/${token}/26`
      // var wmtsUrl = `${BASE_URL}/proxy/${token}/26`
       var wmtsUrl = `${BASE_URL}/proxy/${token}/173`
      // http://100.10.1.169:8088/MoonServer/proxy/a17b6c40-c328-4560-8f3c-2deda0dffc23/173
      // var wmtsUrl = 'http://172.16.2.10:50005/sj_raster/v6/wmts/service/system/10013501/7?ak=mf72ff9295c740ec0f37e61433e8a3ad8d'
      this.AddDemLayer(demUrl)
      this.AddWmtesLayer(wmtsUrl)
    },
@@ -184,7 +187,7 @@
            Cesium.Cartographic.fromDegrees(that.longitude, that.latitude, 0)
          )
          if (that.altHeight) {
            that.altHeight = that.altHeight.toFixed(6);
            that.altHeight = that.altHeight.toFixed(2);
          }
        }
      }, SmartEarth.Cesium.ScreenSpaceEventType.MOUSE_MOVE);
@@ -219,7 +222,7 @@
          globe.ellipsoid.cartesianToCartographic(rightPosition);
        var geodesic = new SmartEarth.Cesium.EllipsoidGeodesic();
        geodesic.setEndPoints(leftCartographic, rightCartographic);
        that.rate = geodesic.surfaceDistance.toFixed(6); //分辨率
        that.rate = geodesic.surfaceDistance.toFixed(2); //分辨率
      });
    },