| | |
| | | position: cartesian, |
| | | point: { |
| | | pixelSize: 10, |
| | | color: Cesium.Color.WHITE, |
| | | color: Cesium.Color.fromCssColorString('#1FFF69'), |
| | | }, |
| | | }) |
| | | |
| | |
| | | position: cartesian, |
| | | point: { |
| | | pixelSize: 10, |
| | | color: Cesium.Color.WHITE, |
| | | color: Cesium.Color.fromCssColorString('#1FFF69'), |
| | | }, |
| | | }) |
| | | |
| | |
| | | |
| | | 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, |
| | | }, |
| | |
| | | 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: { |