I am going to update a CzmlDataSource by Server-sent Events. I go through the document about "EventSource and Streaming". But no code example is provided for how to update CzmlDataSource object when a SSEs comes. I read docs of CzmlDataSource, and guess call load() method of CzmlDataSource object when a SSEs update received. Am I right? Could you provide a simple example for me?
Actually, never mind, it looks like there’ s a better to update the CZML.
You can use CzmlDataSource.process. That way you won’t have to add/remove your CZML with every change. Process will incrementally add new data to your existing CZML data source.