From 225fab98ed3666d4542ed45eca514558d033384d Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Tue, 03 Dec 2024 13:44:58 +0800
Subject: [PATCH] 应急空间调整
---
src/pages/map/components/scomponents/layersControl.vue | 27 ++++++++++++++++++++++++++-
src/views/space/components/leftContainer.vue | 19 ++++---------------
2 files changed, 30 insertions(+), 16 deletions(-)
diff --git a/src/pages/map/components/scomponents/layersControl.vue b/src/pages/map/components/scomponents/layersControl.vue
index b226603..d8efb83 100644
--- a/src/pages/map/components/scomponents/layersControl.vue
+++ b/src/pages/map/components/scomponents/layersControl.vue
@@ -449,7 +449,32 @@
backgroundIcon: VITE_APP_BASE + 'img/mapicon/psk.png',
className: 'xfs-box',
showPanel: false,
- layerName: 'psk'
+ layerName: 'psk',
+ 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)
+ }
},
// {
// id: '3-11',
diff --git a/src/views/space/components/leftContainer.vue b/src/views/space/components/leftContainer.vue
index 23fa5d6..3229b7b 100644
--- a/src/views/space/components/leftContainer.vue
+++ b/src/views/space/components/leftContainer.vue
@@ -4,9 +4,9 @@
* @LastEditors: shuishen 1109946754@qq.com
* @LastEditTime: 2024-11-28 11:35:07
* @FilePath: \bigScreen\src\views\space\components\leftContainer.vue
- * @Description:
- *
- * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
+ * @Description:
+ *
+ * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
-->
<script setup>
import EventBus from 'utils/bus'
@@ -28,17 +28,6 @@
value: "3-3-4",
select: false
},
- {
- label: '给水管网',
- value: "3-3-1",
- select: false
- },
- {
- label: '燃气管网',
- value: "3-3-3",
- select: false
- },
-
])
const curSelect = ref('')
@@ -225,4 +214,4 @@
}
}
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3