北京经济技术开发区经开区虚拟城市项目-【前端】-移动端Web
lixuliang
2024-01-24 3e9cd0d3d92e18de9ec1a33da835e2e9787cbd93
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);