Hello Cesium JS community,
I have a question regarding Cesium JS for the Build a Flight Tracker. I have been able to get this flight tracker working by following the document and specifying static data. However, I wanted to know if it is possible to dynamically update the position. This is to say that I have a endpoint that receives live pings of data and saves it into a JSON file. I want to be able to have the HTML file update the position of the object at the current location received from the endpoint. In the Build a Flight Tracker for Cesium JS at step 5: Visualize movement over time, there is a comment in the JavaScript code that suggest that positionProperty can be added at run time as samples are received from a server. This suggest that it should be possible, however, every time the data is received from the fetch API in JS, the HTML web server reloads. The pings come once or twice a second so the HTML sever is constantly loading.
Something that I have found continuing my research is that HTML appears to be for static webservers. It seems that HTML will not work for pulling dynamic data. This has lead me to look into using Cesium JS in XML instead of HTML. However, I have not been able to get this to work. Also, for the HTML to not work for dynamic data and the comment made in the code that says that it can be done by pulling these points on run time, there is a contradiction. To me it seems that the HTML should be able to pull these points on run time.
I am reaching out to the community to see if I am missing some understanding on how this should work or if it is even possible. Please let me know if this is possible or not and if not what are some options for being able to see a a flight simulation of real time data.
Thanks for the support.