I have been looking into the CZML example in Cesium. I see that it is possible to click to select a satellite that is following an orbit around the Earth. I also see that clicking on the linethat is drawn that represents the orbit track will also select the satellite.
My question is: is it possible to select "orbits" in Cesium and get information, such as ephemeris data back?
I believe that these orbit tracks are defined as "path" objects in the "simple.czml" file using the "leadTime" and "trailTime" properties. Is it possible to get the satellites current position at a given time by clicking on these lines/paths?
Here’s a solution for Cesium 1.1. You may have to change “selectedEntity” to “selectedObject”, and “viewerEntityMixin” to “viewerDynamicObjectMixin” (and possibly more changes) to roll it back for b28 compatibility.
Paste this into Sandcastle.
// Launch Cesium Viewer
var viewer = new Cesium.Viewer(‘cesiumContainer’);
viewer.extend(Cesium.viewerEntityMixin);
// Load CZML
var czmlDataSource = new Cesium.CzmlDataSource();
viewer.dataSources.add(czmlDataSource);
czmlDataSource.loadUrl(’…/…/SampleData/simple.czml’);