Start & Stop of Aircraft in Cesium

Hi Gabby,

Can we start or stop the aircraft on button click..??
It can be done from meter displayed below. But i want this done through button click event..

Can we achieve this??

Regards,
Shubham Mahale

Hi Shubham,

Can you be more specific what you are trying to do? You can stop and start animation time by clicking the play/pause button on the Animation Widget (#6 on the image below).

Cesium Viewer

You can do the same by setting Clock.shouldAnimate.

viewer.clock.shouldAnimate = true; //play
viewer.clock.shouldAnimate = false; //pause

``

Thanks,

Gabby

Thank you Gabby…
Got it…

Thanks alot,