Is it possible to use rxjs observables for cesium events?

Hello,

Is it possible to use rxjs observables for cesium events? especially for camera events.

Thanks in advance!
Baruch

Hello @Baruch_Levin :wave:

Have you tried to use the fromEvent RxJS operator such as:

fromEvent(viewer.camera, 'changed')

Thank you @Aristeidis_Bampakos for your answer!
I will try it.
A javascript question, why it will work? because Cesium use Event.js for events, which is a self implementation, i mean its not the regular DOM events…

@Baruch_Levin according to the RxJS documentation the parameter of the fromEvent should be an object with methods for registering event handler functions. The Event.js in Cesium actually implements such methods like the addEventListener so theoretically it should work. If not, let me know and I could have a more detailed view :smiley:.