Hi There,
I'm generating a CZML object in javascript using a js sgp4 propagator. However I can't seem to find out how to add this to the Cesium scene, only methods for loading CZML files.
Any help would be greatly appreciated.
Thanks,
Pete
Hi There,
I'm generating a CZML object in javascript using a js sgp4 propagator. However I can't seem to find out how to add this to the Cesium scene, only methods for loading CZML files.
Any help would be greatly appreciated.
Thanks,
Pete
The signature for CzmlDataSource.load() says that it takes either a string or an object, so if you have a JS object that is correct CZML structure, you should be able to pass it in directly to that.
Great thanks, I was hoping it was as easy as that but I hadn't found any demo doing it anywhere.
Cheers,
You can use the process() method of the CzmlDataSource, which will add or update the CZML object
While Mark and Jackie are both correct, for performance reasons I would recommend against generating client-side CZML and instead recommend using the Entity API directly (which is what CZML processing does under the hood anyway). Generating the CZML only to immediately process is an unnecessary step.