I’m currently working on creating a constellation of satellites that
display both their ground track and their orbital path.
Something that’s been causing me trouble is how it chooses to overlap these lines sometimes. When I’m in 3D mode (seeing the whole globe), there’s no trouble. The orbital path is in LEO, so naturally, the line is on top of the one shown along the Earth’s surface. However, when I switch to 2D, it seems to reformat the z-axis, if you will. I see the ground track line takes priority as it appears above the orbit line. Normally, this wouldn’t be so troublesome since they’re technically the same line, but since my orbit track updates in an inertial frame, it will shift and be covered up, which is frustrating.
Both the ground track (blue) and orbital path (red) are path elements that follow a point. The images show what I’m confused about a bit better.
Welcome to the Cesium community. We are excited to see you building with our products.
Are you using CesiumJS to create this or another viewer? If it is CesiumJS, are you able to provide a Cesium Sandcastle that illustrates the issue? That will help the community better assist you and provide recommendations.
Okay, I believe this should work. Normally I make a large .json file in the .czml format to interface with the .html front end. I was able to paste one of the .jsons in and I can see the situation. Link to Sandcastle
Thanks for providing that Sandcastle. I took a look at it and didn’t see the blue gray line that was in your images. Should that be visible in your Sandcastle?
Since you are using Cesium JS and this question is focused on dispalying data and Cesium JS and not loading data from Cesium ion, I’m going to move this topic to the Cesium JS group. That will help get in front of more people who may be able to provide feedback.
This solved my problem. I didn’t know that Cesium renders its paths not fully based on height. If both the satellite footprint and the satellite’s path are translucent, or both are solid, then it compares their heights. Though if one is translucent, it draws it above the other.
Thank you Fav1 for the sandbox!