| | |
| | | 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 |
| | |
| | | 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, // 关闭贴地效果,保留高度 |
| | | }, |
| | | } |