diff --git a/src/components/Common/Cesium/index.js b/src/components/Common/Cesium/index.js index de70166..186ab32 100644 --- a/src/components/Common/Cesium/index.js +++ b/src/components/Common/Cesium/index.js @@ -167,7 +167,7 @@ export default class MyCesium { */ setClientByCenter(position) { this.viewer.camera.flyTo({ - destination: Cesium.Cartesian3.fromDegrees(position.longitude, position.latitude, 500000), // 目标点坐标 + destination: Cesium.Cartesian3.fromDegrees(position.longitude, position.latitude, 100000), // 目标点坐标 orientation: { heading: 0, // 航向角(弧度),0表示正北 pitch: Cesium.Math.toRadians(-90), // 俯仰角(弧度),-90度表示垂直向下看 @@ -210,7 +210,7 @@ export default class MyCesium { image: base64, width: 50, height: 50, - scaleByDistance: new Cesium.NearFarScalar(1000000.0, 1.0, 10000000.0, 0.2), // 重点:设置随距离缩放 + scaleByDistance: new Cesium.NearFarScalar(1000.0, 0.8, 10000000.0, 0.2), // 重点:设置随距离缩放 }, properties: { type: MyCesium.ENTITY_TYPES.IMAGE, @@ -258,7 +258,7 @@ export default class MyCesium { image: base64, width: 50, height: 50, - scaleByDistance: new Cesium.NearFarScalar(1000000.0, 1.0, 10000000.0, 0.2), // 重点:设置随距离缩放 + scaleByDistance: new Cesium.NearFarScalar(1000.0, 0.8, 10000000.0, 0.2), // 重点:设置随距离缩放 }, properties: { type: MyCesium.ENTITY_TYPES.IMAGE, diff --git a/src/components/Common/Form/LatitudeInput.vue b/src/components/Common/Form/LatitudeInput.vue index 2bb9a75..17cc5db 100644 --- a/src/components/Common/Form/LatitudeInput.vue +++ b/src/components/Common/Form/LatitudeInput.vue @@ -19,7 +19,7 @@