Send an event

In order to send an event to unity you can call the sendEvent method:

Javascript
Copy

sendEvent method takes these following parameters:

NameTypeDescription
EventNamestringthe name of the event
Dataobjectparameters of your called event. ex: {zoomValue: 0.1}
CallbackFunctiona callback function for unity return (optional)

All events are located in Events to unity section

Example

Enable the event "setMouseListener", allow to trigger the event "onClick" to be fired when map is loaded :

Javascript
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
On This Page
Send an eventExample