Title
Create new category
Edit page index title
Edit category
Edit link
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.
| Name | type | description | |
|---|---|---|---|
| all | bool | Set all logs | |
| debug | bool | Set debug's log activation | |
| warning | bool | Set warning's log activation | |
| error | bool | Set error's log activation |
xxxxxxxxxxFnoMapManager.sendEvent('activeLog', { all: true});changeBackgroundColor
Change background color
Parameters
| Name | type | description |
|---|---|---|
| color | string | The color to use for background (hexadecimal format: #90bdf7) |
Result
No result
Example
xxxxxxxxxxFnoMapManager.sendEvent('changeBackgroundColor', { color: "#90bdf7"});screenshot
Take a screenshot of the map and return the base64
Parameters
No parameter
Result
| Name | type | description |
|---|---|---|
| screenshot | string | Base 64 of the screenshot |
Example
xxxxxxxxxxFnoMapManager.sendEvent('screenshot', null, (data) => { console.log("screenshot base 64:", data.screenshot);});destroyMap
Remove current map from device memory. Used for change current map
Parameters
No parameter
Result
No result
Example
xxxxxxxxxxFnoMapManager.sendEvent('destroyMap');setMouseListener
Allow unity to trigger an event related with mouse (on click, on hover etc ...)
Parameters
| Name | type | description |
|---|---|---|
| state | boolean | True for enable and false for disable |
Result
No result
Example
xxxxxxxxxxFnoMapManager.sendEvent('setMouseListener', {state: true});enableRealTimeUpdates
Enable real time update when a container changed in the server
Parameters
No parameter
Result
No result
Example
xxxxxxxxxxFnoMapManager.sendEvent('enableRealTimeUpdates');enableOutsideMap
Enable the outside map with Google Maps with the possibility to define the size of this background image.
| Name | type | description |
|---|---|---|
| enable | boolean | True for enable and false for disable |
| size | integer | Define the size of the background |
xxxxxxxxxxFnoMapManager.sendEvent('enableOutsideMap',{enable: true,size: 3});