liuyg
2022-01-17 85d6203dd9e7638d2acece88c8e2646650fd894b
Merge branch 'master' of http://192.168.0.105:10010/r/school-web
2 files modified
14 ■■■■ changed files
src/components/map/components/dimension.vue 12 ●●●● patch | view | raw | blame | history
src/components/map/index.vue 2 ●●● patch | view | raw | blame | history
src/components/map/components/dimension.vue
@@ -270,7 +270,7 @@
                    //             })
                    //         }
                    //     })
                    // }, 2400)
                    // }, 1000)
                    that.titlesetLayerFlag = true
                    that.viewer.camera.setView({
@@ -290,10 +290,10 @@
                    // 最小
                    that.viewer.scene.screenSpaceCameraController.minimumZoomDistance = 200
                    // 最大
                    that.viewer.scene.screenSpaceCameraController.maximumZoomDistance = 2400
                    that.viewer.scene.screenSpaceCameraController.maximumZoomDistance = 1000
                    // 设置相机缩小时的速率
                    // that.viewer.scene.screenSpaceCameraController._minimumZoomRate = 24000
                    // that.viewer.scene.screenSpaceCameraController._minimumZoomRate = 10000
                    // 设置相机放大时的速率
                    that.viewer.scene.screenSpaceCameraController._maximumZoomRate = 5906376272000
                    // 视角平移
@@ -529,7 +529,7 @@
                // 最小
                that.viewer.scene.screenSpaceCameraController.minimumZoomDistance = 200
                // 最大
                that.viewer.scene.screenSpaceCameraController.maximumZoomDistance = 2400
                that.viewer.scene.screenSpaceCameraController.maximumZoomDistance = 1000
                // 视角旋转
                that.viewer.scene.screenSpaceCameraController.enableTilt = false
            }
@@ -561,9 +561,9 @@
                    }
                })
            };
            if (height > 2400) {
            if (height > 1000) {
                that.viewer.camera.setView({
                    destination: that.DC.Namespace.Cesium.Cartesian3.fromRadians(that.viewer.camera.positionCartographic.longitude, that.viewer.camera.positionCartographic.latitude, 2400),
                    destination: that.DC.Namespace.Cesium.Cartesian3.fromRadians(that.viewer.camera.positionCartographic.longitude, that.viewer.camera.positionCartographic.latitude, 1000),
                    orientation: {
                        // 指向
                        heading: that.DC.Namespace.Cesium.Math.toRadians(0, 0),
src/components/map/index.vue
@@ -290,7 +290,7 @@
            viewer.compass.enable = true
            viewer.zoomController.enable = true
            viewer.locationBar.enable = true
            // viewer.locationBar.enable = true
            viewer.hawkeyeMap.enable = true
            viewer.hawkeyeMap.addBaseLayer(
                that.DC.ImageryLayerFactory.createAmapImageryLayer(