From 2800fa4f32f3900509cb4d6eefaf2bfaf54efdd7 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 21 Apr 2025 18:29:09 +0800
Subject: [PATCH] fix: 天气显示
---
src/views/TaskManage/TaskIntermediateContent/TaskMap.vue | 28 ++++++++++++++++------------
1 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/src/views/TaskManage/TaskIntermediateContent/TaskMap.vue b/src/views/TaskManage/TaskIntermediateContent/TaskMap.vue
index d2fac3a..a8787a7 100644
--- a/src/views/TaskManage/TaskIntermediateContent/TaskMap.vue
+++ b/src/views/TaskManage/TaskIntermediateContent/TaskMap.vue
@@ -107,7 +107,7 @@
position: cartesian,
point: {
pixelSize: 10,
- color: Cesium.Color.WHITE,
+ color: Cesium.Color.fromCssColorString('#1FFF69'),
},
})
@@ -138,7 +138,7 @@
position: cartesian,
point: {
pixelSize: 10,
- color: Cesium.Color.WHITE,
+ color: Cesium.Color.fromCssColorString('#1FFF69'),
},
})
@@ -289,13 +289,17 @@
viewer.entities.add({
polyline: {
- width: 4,
+ width: 5,
positions: positions,
- material: new ImageTrailMaterial({
- color: { alpha: 1, blue: 1, green: 1, red: 1 },
- speed: 20,
+ // material: new ImageTrailMaterial({
+ // color: { alpha: 1, blue: 1, green: 1, red: 1 },
+ // speed: 20,
+ // image: newlineImg,
+ // repeat: { x: Math.floor(40), y: 1 },
+ // }),
+ material: new Cesium.PolylineGlowMaterialProperty({
+ // color: Cesium.Color.GREEN,
image: newlineImg,
- repeat: { x: Math.floor(40), y: 1 },
}),
clampToGround: false,
},
@@ -338,11 +342,11 @@
label: {
text: `${index + 1}`,
font: 'bold 14px serif',
- fillColor: Cesium.Color.WHITE,
- // style: Cesium.LabelStyle.FILL,
- // verticalOrigin: Cesium.VerticalOrigin.CENTER, // 垂直居中
- // horizontalOrigin: Cesium.HorizontalOrigin.CENTER, // 水平居中
- // pixelOffset: new Cesium.Cartesian2(0, 0), // 根据需要调整偏移量
+ fillColor: Cesium.Color.WHITE,
+ // style: Cesium.LabelStyle.FILL,
+ // verticalOrigin: Cesium.VerticalOrigin.CENTER, // 垂直居中
+ // horizontalOrigin: Cesium.HorizontalOrigin.CENTER, // 水平居中
+ pixelOffset: new Cesium.Cartesian2(2, 0), // 根据需要调整偏移量
eyeOffset: new Cesium.Cartesian3(0, 0, -10), // 使标签在点的上方
},
billboard: {
--
Gitblit v1.9.3