| | |
| | | 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); //分辨率 |
| | | }); |
| | | |
| | | }, |