From b2329d6973a268044164afd3ac6d3f663aa07fbc Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 04 Jan 2025 20:30:12 +0800
Subject: [PATCH] 应急空间和三级防控加载调整

---
 src/pages/map/components/scomponents/layersControl.vue |   50 ++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 46 insertions(+), 4 deletions(-)

diff --git a/src/pages/map/components/scomponents/layersControl.vue b/src/pages/map/components/scomponents/layersControl.vue
index 5a3783a..b4627a8 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: 2025-01-04 20:17:26
+ * @LastEditTime: 2025-01-04 20:26:15
  * @FilePath: \bigScreen\src\pages\map\components\scomponents\layersControl.vue
  * @Description:
  *
@@ -291,6 +291,48 @@
 
       {
         parentId: '3',
+        id: '3-5',
+        label: '湿地',
+        type: 'layer',
+        subType: 'labelPoint',
+        method: getList,
+        params: {
+          type: 5,
+          size: 1000
+        },
+        backgroundIcon: VITE_APP_BASE + 'img/mapicon/sd.png',
+        className: 'xfs-box',
+        showPanel: false,
+        layerName: 'sd',
+        incident: (e) => {
+          const { attrParams } = e.overlay
+          // 删除
+          destroyPop()
+          if (!attrParams.firmName) {
+            return
+          }
+          addPopLayers[attrParams.id] = new DC.HtmlLayer(attrParams.id)
+          window.$viewer.addLayer(addPopLayers[attrParams.id])
+          let iconEl = `<div class="marsBlueGradientPnl">
+      <div>企业名称:${attrParams.firmName}</div>
+      <div>作用:${attrParams.mainFuncName}</div>
+          </div>`
+          let divIcon = new DC.DivIcon(
+            new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64),
+            `<div class="public-map-popup-two">
+              ${iconEl}
+            </div>`
+          )
+          let incident = () => {
+            destroyPop()
+          }
+          divIcon.on(DC.MouseEventType.CLICK, incident)
+          addPopLayers[attrParams.id].addOverlay(divIcon)
+        }
+      },
+
+      {
+        parentId: '3',
         id: '3-6',
         label: '坑塘',
         type: 'layer',
@@ -333,7 +375,7 @@
 
       {
         parentId: '3',
-        id: '3-7',
+        id: '3-8',
         label: '桥梁',
         type: 'layer',
         subType: 'labelPoint',
@@ -348,7 +390,7 @@
         layerName: 'ql'
       },
 
-      /* {
+      {
         parentId: '3',
         id: '3-9',
         label: '雨水管网',
@@ -358,7 +400,7 @@
         source: ysgw,
         color: DC.Color.CYAN.withAlpha(0.9),
         height: 48,
-      }, */
+      },
     ]
   },
 

--
Gitblit v1.9.3