src/components/sideMenu/layerMenu/layerPanel.vue
@@ -304,6 +304,24 @@ }, // 二维底图选择 handleEMapClick(result, index) { let p = sgworld.Navigate.getCameraInfo(); let pitch ; if (pitch !== -90) { pitch = -90; sgworld.Navigate.flyToPointsInterest({ destination: new Cesium.Cartesian3.fromDegrees( p.location.lon, p.location.lat, p.location.height ), orientation: { heading: Cesium.Math.toRadians(0), pitch: Cesium.Math.toRadians(pitch), roll: Cesium.Math.toRadians(0), }, }); } // 设置相机 if (result.name == "二维地图") { this.changeLayerView(25000, false);