I need to create a single cesium entity on the globe that is comprised of multiple polygons and polylines. I Know I can have 1 of each type of geometry on an entity and it will work just fine, but I need to be able to have multiple of ONE type of geometry as part of a single entity.
return {
name: track.data.Name,
polygon: {
hierarchy: newPoints,
material: Cesium.Color.RED.withAlpha( 0.2 )
},
polyline: {
positions: Cesium.Cartesian3.fromDegreesArray( segment ),
width: 1,
material: new Cesium.PolylineDashMaterialProperty( {
color: Cesium.Color.BLUE
} )
}
}
The above code handles 1 polygon and polyline as a single object.