From 840f27a93b723fc1b7f43b6984884c125dc1524c Mon Sep 17 00:00:00 2001 From: liaoboping <344114999@qq.com> Date: Sat, 20 Sep 2025 23:44:46 +0800 Subject: [PATCH] coding --- src/components/Common/Cesium/index.js | 6 ++--- src/components/Common/Form/LatitudeInput.vue | 2 +- src/components/Common/Form/LongitudeInput.vue | 2 +- src/views/subsystem/control/index.vue | 6 ++--- src/views/subsystem/display/index.vue | 25 +++++++++++++++++++ src/views/subsystem/model/index.vue | 25 +++++++++++++++++++ src/views/subsystem/scene/components/Jcsx.vue | 8 +++--- src/views/subsystem/scene/components/Zzxd.vue | 10 ++++---- src/views/subsystem/scene/entry.vue | 5 ++-- src/views/subsystem/scene/index.vue | 25 +++++++++++++++++++ src/views/subsystem/scene/presetting.vue | 25 +++++++++++++++++++ 11 files changed, 120 insertions(+), 19 deletions(-) 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 @@