From b66fe9cd2cd2cb3b460b08b2dac73f70e39cc9d9 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 16 Apr 2025 14:32:13 +0800
Subject: [PATCH] 吉水图片资源更新
---
src/views/pd/components/dynamicPanel.vue | 46 +++++++++++++++++++++++++++++++---------------
1 files changed, 31 insertions(+), 15 deletions(-)
diff --git a/src/views/pd/components/dynamicPanel.vue b/src/views/pd/components/dynamicPanel.vue
index 9abcdd1..63b8fa3 100644
--- a/src/views/pd/components/dynamicPanel.vue
+++ b/src/views/pd/components/dynamicPanel.vue
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2024-11-09 15:41:35
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-12-17 19:00:23
+ * @LastEditTime: 2024-12-18 09:39:00
* @FilePath: \bigScreen\src\views\pd\components\dynamicPanel.vue
* @Description:
*
@@ -163,7 +163,7 @@
},
twotime: 13000,
- threeContent: '调度金龙水库清水,稀释污染团。',
+ threeContent: '必要时调度金龙水库清水。',
threePointPosition: {
lng: 115.10488545,
lat: 27.27678110
@@ -414,19 +414,33 @@
}
const createLinePath = (item, cb = () => { }) => {
- let polyline = new DC.Polyline(item.linePosition)
- polyline.setStyle({
- width: 20,
- material: new DC.PolylineImageTrailMaterialProperty({
- color: DC.Color.RED,
- speed: 20,
- image: VITE_APP_BASE + 'img/mapicon/right.png',
- repeat: { x: 5, y: 1 }
- }),
- clampToGround: false
- })
+ if (item.linePosition) {
+ let polyline = new DC.Polyline(item.linePosition)
+ polyline.setStyle({
+ width: 20,
+ material: new DC.PolylineImageTrailMaterialProperty({
+ color: DC.Color.RED,
+ speed: 20,
+ image: VITE_APP_BASE + 'img/mapicon/right.png',
+ repeat: { x: 5, y: 1 }
+ }),
+ clampToGround: false
+ })
- dynamicLineVectorLayer.addOverlay(polyline)
+ dynamicLineVectorLayer.addOverlay(polyline)
+ } else {
+ let threeCenter = DC.Position.fromObject(item.threePointPosition)
+ let threeCircle = new DC.Circle(threeCenter, 30)
+ threeCircle.setStyle({
+ material: new DC.CircleWaveMaterialProperty({
+ color: DC.Color.fromRandom(),
+ speed: 20,
+ count: 5,
+ gradient: 0.5
+ })
+ })
+ dynamicVectorLayer.addOverlay(threeCircle)
+ }
let threeContent = new DC.DivIcon(
new DC.Position(item.threePointPosition.lng, item.threePointPosition.lat, 70),
@@ -516,7 +530,9 @@
})
} else {
twoFun(item, () => {
- publicFun(item)
+ createLinePath(item, () => {
+ publicFun(item)
+ })
})
}
})
--
Gitblit v1.9.3