Triggering click events from code (not by user using his mouse)


I know how to listen to click events triggered by user. I would like to know
how can i trigger those click events from the code.



You can add listeners to click events with the ScreenSpaceEventHandler. This Sandcastle example shows scenarios for using clicks for picking.



I dont need to listen to those events. I need to trigger them, automatically by code, not manually.

I’m not sure what you’re trying to accomplish here, can you give some more context?



Usually the user triggers cesium’s click events by clicking his mouse. I would like to trigger those events automatically without the need of actually clicking on the mouse.

What event? There is probably a way to call that directly instead of simulating a mouse click.