Global events

All events for global operations.

activeLog

If you want to disable logs or if you prefer to increase its verbosity you can use these methods. By default, only errors are shown. If you want to see more logs you can activate one or more of these following parameters.

Nametypedescription
allboolSet all logs
debugboolSet debug's log activation
warningboolSet warning's log activation
errorboolSet error's log activation
Javascript
Swift
Java
Copy

changeBackgroundColor

Change background color

Parameters

Nametypedescription
colorstringThe color to use for background (hexadecimal format: #90bdf7)

Result

No result

Example

Javascript
Swift
Java
Copy

screenshot

Take a screenshot of the map and return the base64

Parameters

No parameter

Result

Nametypedescription
screenshotstringBase 64 of the screenshot

Example

Javascript
Swift
Java
Copy

destroyMap

Remove current map from device memory. Used for change current map

Parameters

No parameter

Result

No result

Example

Javascript
Swift
Java
Copy

setMouseListener

Allow unity to trigger an event related with mouse (on click, on hover etc ...)

Parameters

Nametypedescription
statebooleanTrue for enable and false for disable

Result

No result

Example

Javascript
Swift
Java
Copy

enableRealTimeUpdates

Enable real time update when a container changed in the server

Parameters

No parameter

Result

No result

Example

Javascript
Swift
Java
Copy

enableOutsideMap

Enable the outside map with Google Maps with the possibility to define the size of this background image.

Nametypedescription
enablebooleanTrue for enable and false for disable
sizeintegerDefine the size of the background
Javascript
Swift
Java
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard