viewer.entities.add({
id:"load_1",
show: false,
name: 'Orange line with black outline at height and following the surface',
polyline: {
positions: Cesium.Cartesian3.fromDegreesArrayHeights(cartesArray),
width: 10,
material : new Cesium.PolylineArrowMaterialProperty(Cesium.Color.PURPLE)
// material: new Cesium.PolylineOutlineMaterialProperty({
// color: Cesium.Color.ORANGE,
// outlineWidth: 2,
// outlineColor: Cesium.Color.RED
// })
}
});
分别用PolylineArrowMaterialProperty,和PolylineOutlineMaterialProperty两个画线,
在图层半透明的情况下,PolylineArrowMaterialProperty会被模型遮挡,PolylineOutlineMaterialProperty则不会。