| | |
| | | /> |
| | | </li> --> |
| | | <li> |
| | | <img |
| | | @click="switchImagerLayerClick('影像底图')" |
| | | src="@/assets/img/new/yingxiang.png" |
| | | /> |
| | | <img @click="switchImagerLayerClick('影像底图')" src="@/assets/img/new/yingxiang.png" /> |
| | | </li> |
| | | <li> |
| | | <div class="radiogroup" @change="switchImagerLayerClick('二维底图')"> |
| | |
| | | </div> |
| | | </li> |
| | | <li> |
| | | <img |
| | | @click="switchImagerLayerClick('实景模型')" |
| | | src="@/assets/img/new/sanwei.png" |
| | | /> |
| | | <img @click="switchImagerLayerClick('实景模型')" src="@/assets/img/new/sanwei.png" /> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | |
| | | orientation: { |
| | | heading: 0, |
| | | pitch: -45, |
| | | roll: 0, |
| | | }, |
| | | }, |
| | | roll: 0 |
| | | } |
| | | } |
| | | }; |
| | | }, |
| | | mounted() {}, |
| | | mounted() { |
| | | Bus.$on("switchImagerLayerClick", data => { |
| | | if (data) { |
| | | this.switchImagerLayerClick(data); |
| | | } |
| | | }); |
| | | }, |
| | | mixins: [baseVuex], |
| | | methods: { |
| | | clearLayer() {}, |
| | | switchImagerLayerClick(type) { |
| | | console.log(type); |
| | | switch (type) { |
| | | case "影像底图": |
| | | this.radio = null; |
| | |
| | | orientation: { |
| | | heading: Cesium.Math.toRadians(0), |
| | | pitch: Cesium.Math.toRadians(pitch), |
| | | roll: Cesium.Math.toRadians(0), |
| | | }, |
| | | roll: Cesium.Math.toRadians(0) |
| | | } |
| | | }); |
| | | // window.Viewer.scene.screenSpaceCameraController.maximumZoomDistance = 45000; |
| | | // window.Viewer.scene.screenSpaceCameraController.minimumZoomDistance = 500; |
| | |
| | | orientation: { |
| | | heading: Cesium.Math.toRadians(0), |
| | | pitch: Cesium.Math.toRadians(pitch), |
| | | roll: Cesium.Math.toRadians(0), |
| | | }, |
| | | roll: Cesium.Math.toRadians(0) |
| | | } |
| | | }); |
| | | // window.Viewer.scene.screenSpaceCameraController.maximumZoomDistance = 8000000; |
| | | // window.Viewer.scene.screenSpaceCameraController.minimumZoomDistance = 40; |
| | |
| | | orientation: { |
| | | heading: Cesium.Math.toRadians(0), |
| | | pitch: Cesium.Math.toRadians(-90), |
| | | roll: Cesium.Math.toRadians(0.0), |
| | | }, |
| | | roll: Cesium.Math.toRadians(0.0) |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | |
| | | } catch (e) {} |
| | | if (window.panoramaHandler) window.panoramaHandler.destroy(); |
| | | if (window.panoramaHandler) window.panoramaHandler = undefined; |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | }; |
| | | </script> |