GuLiMmo
2024-03-19 aec00ecc093be803860c8675cbe1c4c776a7cb4e
src/pages/page-web/projects/routeLine.vue
@@ -66,7 +66,6 @@
import * as Cesium from 'cesium'
import { convertTimestampToDate } from '/@/utils/time'
import { cesiumOperation } from '/@/hooks/use-cesium-tsa'
import CustomerSportLine from '/@/utils/cesium/customerSportLine'
const getResource = (name: string) => {
  return new URL(`/src/assets/icons/${name}`, import.meta.url).href
@@ -229,13 +228,7 @@
    polyline: {
      width: 10,
      positions: routeLine,
      // material: Cesium.Color.BLUE
      material: new CustomerSportLine({
        color: Cesium.Color.WHITE,
        speed: 20,
        image: getResource('arrow.png'),
        repeat: { x: 15, y: 0 },
      }),
      material: Cesium.Color.BLUE,
      clampToGround: false, // 关闭贴地效果,保留高度
    },
  }