| | |
| | | ); |
| | | //页面初始化 |
| | | this.earthCtrl = new SmartEarth.EarthCtrl("cesiumContainer", { |
| | | // StaticFileBaseUrl: StaticFileBaseUrl, |
| | | StaticFileBaseUrl: StaticFileBaseUrl, |
| | | ellipsoidCoordinates: "MOON", |
| | | }); |
| | | this.earthCtrl.environment.disableAllEffect(); |
| | |
| | | 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) |
| | | }, |
| | |
| | | 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); |
| | |
| | | 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); //分辨率 |
| | | }); |
| | | |
| | | }, |