I'm building an application that will display historical traffic on a map. I want to do almost exactly what the Vehicle part of the Sandcastle CZML demo does:
- Create a path comprising many timestamped points (ideally cartographicDegrees)
- Render that path on a map
- Set the timeline's bounds to the time bounds of that path (*)
- When the timeline is playing, move a dot along the path
- Ideally, when the timeline is playing, show only the part of the path between times (t) and (t-delta)
...but I want to do it all in code instead of loading a CZML file and I'll be doing it for a bunch (tens to thousands) of objects at once. I know that I'll run into performance limits at some point; right now I'm trying to figure out how to do this at all.
I've spent the day reading through archives here and elsewhere and I'm confused by references to classes like AnimationController that don't currently exist. It looks like the apocryphal Part 2 of the Visualizing Spatial Data tutorial is exactly what I need.
Is there a minimal example of how to do any or all of these tasks? I suspect I need to use CallbackProperty for the position of the moving dot, or maybe a PathVisualizer, but I feel like I'm missing something important.
(Note: the post at https://cesiumjs.org/forum.html#!msg/cesium-dev/dsP9zdj1-EI/v-dpQ9GFDAAJ seems to be getting pretty close.)
(*) ...or the union of many paths' availability intervals, which is more likely to be the case