Hi how to stream live czml packets and process in java script without making UI freeze and without starting the scenario from the begining, whenever i send new czml packet of an object from server with new updated Cartesian coordinates along with epoch time and elapsed seconds from epoch time , the whole scenario will restarts from the beginning after processing the packet. So how to avoid scenario restart. Basically i want object in the scenario moving with real time , where real time Cartesian coordinates are fed from server.
It sounds like you are calling CzmlDataSource.load
or CzmlDataSource.loadUrl
each time. This causes existing data to be removed. If you simply want to update data, call CzmlDataSource.process
or CzmlDataSource.processUrl
.
Also, when you construct the Viewer, be sure to pass the automaticallyTrackDataSourceClocks
option and set it to false
. This will prevent automatic clock adjustment based on loaded data.