From e5fc8c8a5fe96ac02a0e3e40e8577a0a44334321 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 02 Sep 2025 15:03:11 +0800
Subject: [PATCH] feat:二维码调整

---
 src/components/map-container/mapContainer.vue |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/components/map-container/mapContainer.vue b/src/components/map-container/mapContainer.vue
index ac4e60b..297350b 100644
--- a/src/components/map-container/mapContainer.vue
+++ b/src/components/map-container/mapContainer.vue
@@ -4,9 +4,9 @@
  * @LastEditors: shuishen 1109946754@qq.com
  * @LastEditTime: 2025-04-28 11:34:40
  * @FilePath: \drone-web-manage\src\components\map-container\mapContainer.vue
- * @Description: 
- * 
- * Copyright (c) 2024 by shuishen, All Rights Reserved. 
+ * @Description:
+ *
+ * Copyright (c) 2024 by shuishen, All Rights Reserved.
 -->
 <template>
     <div class="map-container">
@@ -59,7 +59,7 @@
 
 async function initMap () {
     if (viewer) return
-    publicCesiumInstance = new PublicCesium({ dom: 'viewer-container' })
+    publicCesiumInstance = new PublicCesium({ dom: 'viewer-container',layerMode: 4 })
     viewer = publicCesiumInstance.getViewer()
 
     initViewer(viewer)
@@ -105,7 +105,7 @@
 
     // 定位到点位
     const points = [[lng, lat]]  // 确保格式为二维数组
-    flyVisual(points, viewer, 4)
+    flyVisual({ positionsData:points, viewer,multiple: 10 })
 }
 
 /**
@@ -113,7 +113,7 @@
  * @param data 数据  数据格式 [[lng, lat], [lng, lat], [lng, lat]]
  */
 async function addPolyline (data) {
-    await renderPreviewLine(data.url, data.type, data.cb)
+    await renderPreviewLine(data.url, data.type, data.cb, data.infos)
 }
 
 onMounted(() => {
@@ -160,4 +160,4 @@
     width: 100%;
     height: 100%;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3