forked from drone/command-center-dashboard

张含笑
2025-04-16 b640f46407c19123f95565a5cc597e65cf6d76e2
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: {