1. A concise explanation of the problem you're experiencing.
I have two moving objects. I'd like to draw a polyline between them using the Entity API, but I get an e.slice() is not a function error.
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
movingTwo.polyline = new Cesium.Polyline({
positions: new Cesium.PositionPropertyArray([
new Cesium.ReferenceProperty(
veiwer.entities,
movingOne.id,
[ 'position' ]
),
new Cesium.ReferenceProperty(
viewer.entities,
movingTwo.id,
[ 'position' ]
)
]),
material: new Cesium.ColorMaterialProperty(
Cesium.Color.YELLOW.withAlpha( 0.25 )
)
})
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
There seem to be examples of this working with CZML, but no working example of achieving this with the Entity API. I've followed this StackOverflow post but I get an error 'e.slice() is not a function.
4. The Cesium version you're using, your operating system and browser.
V1.37 with Chrome.