From 553614ce8f6f6b7a2cfbe1572cd7edf597dbb9aa Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 02 Dec 2024 19:00:43 +0800
Subject: [PATCH] 地图点的高度处理调整

---
 src/pages/map/components/scomponents/layersControl.vue |   39 +++++++++++++++++++++++++++++----------
 1 files changed, 29 insertions(+), 10 deletions(-)

diff --git a/src/pages/map/components/scomponents/layersControl.vue b/src/pages/map/components/scomponents/layersControl.vue
index 8857e66..8838866 100644
--- a/src/pages/map/components/scomponents/layersControl.vue
+++ b/src/pages/map/components/scomponents/layersControl.vue
@@ -2,7 +2,7 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2024-10-31 10:47:29
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-12-01 21:45:13
+ * @LastEditTime: 2024-12-02 18:53:41
  * @FilePath: \bigScreen\src\pages\map\components\scomponents\layersControl.vue
  * @Description:
  *
@@ -106,7 +106,26 @@
     type: 'layer',
     subType: '3Dtile',
     urlData: [
-
+      {
+        url: VITE_APP_BASE + 'newMx/mx/tile_01/tileset.json',
+        label: 'tile_01'
+      },
+      {
+        url: VITE_APP_BASE + 'newMx/mx/tile_02/tileset.json',
+        label: 'tile_02'
+      },
+      {
+        url: VITE_APP_BASE + 'newMx/mx/tile_03/tileset.json',
+        label: 'tile_03'
+      },
+      {
+        url: VITE_APP_BASE + 'newMx/mx/tile_04/tileset.json',
+        label: 'tile_04'
+      },
+      {
+        url: VITE_APP_BASE + 'newMx/mx/tile_05/tileset.json',
+        label: 'tile_05'
+      },
     ],
     layerName: 'hgyq'
   },
@@ -158,7 +177,7 @@
             <img src="${attrParams.imageUrl}" />
                 </div>`
           let divIcon = new DC.DivIcon(
-            new DC.Position(attrParams.lng, attrParams.lat, 64),
+            new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64),
             `<div class="public-map-popup-two">
                     ${iconEl}
                   </div>`
@@ -198,7 +217,7 @@
                   <img src="${attrParams.imageUrl}" width="160" height="160" />
                 </div>`
           let divIcon = new DC.DivIcon(
-            new DC.Position(attrParams.lng, attrParams.lat, 64),
+            new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64),
             `<div class="public-map-popup-two">
                     ${iconEl}
                   </div>`
@@ -284,7 +303,7 @@
                   <img src="${attrParams.imageUrl}" width="160" height="160" />
                 </div>`
           let divIcon = new DC.DivIcon(
-            new DC.Position(attrParams.lng, attrParams.lat, 64),
+            new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64),
             `<div class="public-map-popup-two">
                     ${iconEl}
                   </div>`
@@ -325,7 +344,7 @@
                   <img src="${attrParams.imageUrl}" width="160" height="160" />
                 </div>`
           let divIcon = new DC.DivIcon(
-            new DC.Position(attrParams.lng, attrParams.lat, 64),
+            new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64),
             `<div class="public-map-popup-two">
                     ${iconEl}
                   </div>`
@@ -366,7 +385,7 @@
                   <img src="${attrParams.imageUrl}" width="160" height="160" />
                 </div>`
           let divIcon = new DC.DivIcon(
-            new DC.Position(attrParams.lng, attrParams.lat, 64),
+            new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64),
             `<div class="public-map-popup-two">
                     ${iconEl}
                   </div>`
@@ -473,7 +492,7 @@
             <li>${attrParams.riskLevelName || ''}</li>
             </div>`
           let divIcon = new DC.DivIcon(
-            new DC.Position(attrParams.lng, attrParams.lat, 64),
+            new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64),
             `<div class="public-map-popup-three">
                     ${iconEl}
                   </div>`
@@ -511,7 +530,7 @@
             <li>${attrParams.riskLevelName || ''}</li>
             </div>`
           let divIcon = new DC.DivIcon(
-            new DC.Position(attrParams.lng, attrParams.lat, 64),
+            new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64),
             `<div class="public-map-popup-three">
                     ${iconEl}
                   </div>`
@@ -713,7 +732,7 @@
               }
 
               let divIcon = new DC.DivIcon(
-                new DC.Position(i.lng, i.lat, 64),
+                new DC.Position(i.lng, i.lat, i.ele || 64),
                 `<div class="public-map-popup ${item.className || ''}">
                     ${iconEl}
                   </div>`

--
Gitblit v1.9.3