I'm now experimenting with using a path entity along with an ellipse and a sampled position provider to show the current position and path from a GPS source. I asynchronously load the times / positions into my sampled position property, and set the availability to be a 12 hour range forward from my start time.
I'm confused as to how to use the clock. The last data point I get will be behind the current system clock time. I want to render and hold position of the last data point I got. I've attempted setting the viewer clock's current time to match that last data point's time yet the ellipse & path are not updating to that time.
(I've also experimented with a short time loop and in that case I do see the ellipse traveling along the path)
This must be a solved problem.
Here is the code that updates the data & clock time for a new position:
let cdate = JulianDate.fromIso8601(data.timestamp);
this.viewerWrapper.viewer.clock.currentTime = cdate.clone();
Running on Chrome with Cesiumjs 1.27
thanks so very much for your help
NASA Ames Research Center