On Wednesday, June 3, 2015 at 1:44:18 AM UTC-4, Brian Breitsch wrote:
> Based on the examples and the file `Cesium/Apps/SampleData/simple.czml`, it is clear to me how to create a line between two static objects using Polyline. Is there a way to show a line between two moving objects?
>
> The documentation here suggests no, since Polyline is not interpolatable.
If I'm not mistaken, you would pass the positions of the two moving objects as a PositionPropertyArray of ReferenceProperties. I was able to create a line between a moving object orbiting the earth and the position directly beneath it by creating two ReferenceProperty objects with the positions of the time dynamic objects and then initializing a PositionPropertyArray with the array of those two objects.
This was done using the Cesium API and a loaded .kml file, so it would be easier just to use the .czml API to pass the references like in the simple.czml example.