From b640f46407c19123f95565a5cc597e65cf6d76e2 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Wed, 16 Apr 2025 17:46:38 +0800
Subject: [PATCH] feat: 修改单点,智能规划选区颜色
---
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