From 869ccad3efb2b031ecf6bc2d5453f84c8414774a Mon Sep 17 00:00:00 2001
From: GuLiMmo <2820890765@qq.com>
Date: Thu, 25 Jan 2024 14:20:34 +0800
Subject: [PATCH] chore: 范围半径修改
---
src/components/GMap.vue | 5 +++--
src/components/common/sidebar.vue | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/components/GMap.vue b/src/components/GMap.vue
index 18e835b..450193d 100644
--- a/src/components/GMap.vue
+++ b/src/components/GMap.vue
@@ -1249,9 +1249,10 @@
// 设置无人机范围
// cesium.removeById('rangeEllipse')
const { dock: { basic_osd } } = deviceInfo
+
const ellipseSetting = {
- longitude: basic_osd.longitude,
- latitude: basic_osd.latitude
+ longitude: basic_osd?.longitude,
+ latitude: basic_osd?.latitude
}
cesium.addEllipse(ellipseSetting)
cesium.flyTo(ellipseSetting, 5, 20000)
diff --git a/src/components/common/sidebar.vue b/src/components/common/sidebar.vue
index ed0ae79..b70b687 100644
--- a/src/components/common/sidebar.vue
+++ b/src/components/common/sidebar.vue
@@ -56,7 +56,7 @@
const options = [
{ key: 0, label: '团队', path: '/' + ERouterName.TSA, icon: 'TeamOutlined' },
// { key: 1, label: '直播', path: '/' + ERouterName.LIVESTREAM, icon: 'VideoCameraOutlined' },
- { key: 2, label: '标注', path: '/' + ERouterName.LAYER, icon: 'EnvironmentOutlined' },
+ // { key: 2, label: '标注', path: '/' + ERouterName.LAYER, icon: 'EnvironmentOutlined' },
{ key: 3, label: '媒体库', path: '/' + ERouterName.MEDIA, icon: 'PictureOutlined' },
{ key: 4, label: '航线库', path: '/' + ERouterName.WAYLINE, icon: 'NodeIndexOutlined' },
{ key: 5, label: '计划库', path: '/' + ERouterName.TASK, icon: 'CalendarOutlined' },
--
Gitblit v1.9.3