From 760a6447c353bf674a91d22ae449783aa560f85b Mon Sep 17 00:00:00 2001 From: xuhongjie <1943105267@qq.com> Date: Thu, 10 Apr 2025 12:48:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=9D=90=E6=A0=87=E7=B3=BB?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E5=A4=84=E7=90=86=E5=B7=A1=E8=88=AA?= =?UTF-8?q?=E4=B8=8E=E6=89=8B=E6=9F=84=E6=8E=A7=E5=88=B6=E5=86=B2=E7=AA=81?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/map/marsMap.vue | 34 +++++++++++++------------- src/views/components/map/panelLeft.vue | 4 +-- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/views/components/map/marsMap.vue b/src/views/components/map/marsMap.vue index 4b144d2..a6fd421 100644 --- a/src/views/components/map/marsMap.vue +++ b/src/views/components/map/marsMap.vue @@ -43,27 +43,20 @@ let options = { show: false, }, basemaps: [ - { - id: 2021, - pid: 10, - name: "天地图影像", - icon: "https://data.mars3d.cn/img/thumbnail/basemap/tdt_img.png", + { + name: "高德影像", type: "group", + icon: "https://data.mars3d.cn/img/thumbnail/basemap/gaode_img.png", layers: [ - { - name: "底图", - type: "tdt", - layer: "img_d", - }, - { - name: "注记", - type: "tdt", - layer: "img_z", - }, + { name: "底图", type: "gaode", layer: "img_d" }, + { name: "注记", type: "gaode", layer: "img_z" } ], - show: true, - }, + show: true + } ], + method: { + chinaCRS: mars3d.ChinaCRS.GCJ02 // 标识坐标系 + }, }; const params = reactive({ lat: 31.162232, @@ -176,6 +169,13 @@ const handleUavDataLast = () => { params.heading = heading; params.pitch = pitch; params.roll = roll; + //注意:清除默认给的固定线路,否则会出现手柄控制与固定线路冲突问题 + uav.position = { + type: "time", // 时序动态坐标 + speed: 100, + list: [[120.657967,31.048193,100] ], + } + }; const boostrapUav = () => { diff --git a/src/views/components/map/panelLeft.vue b/src/views/components/map/panelLeft.vue index ffdc671..2b13dc8 100644 --- a/src/views/components/map/panelLeft.vue +++ b/src/views/components/map/panelLeft.vue @@ -74,13 +74,13 @@