Find & Order
v1.0
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Send an event
Copy Markdown
Open in ChatGPT
Open in Claude
In order to send an event to unity you can call the sendEvent method:
Javascript
FnoMapManager.sendEvent("zoomIn", {zoomValue : 0.5});sendEvent method takes these following parameters:
| Name | Type | Description |
|---|---|---|
| EventName | string | the name of the event |
| Data | object | parameters of your called event. ex: {zoomValue: 0.1} |
| Callback | Function | a 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
x
const fnoToken = "<YOUR-FNO-TOKEN>"; // provide from backofficeconst fnoMapId = "<MAP-ID>" // id of the map to loadlet FnoMapManager;window.addEventListener("load", function(){ FnoMapManager = window.FnoMapManager; FnoMapManager.initViewerMode(fnoToken) FnoMapManager.loadMap(idMap, '3dMapContainer', function(){ // enable onClick event in 3d map FnoMapManager.sendEvent("setMouseListener", {state : true}); })});Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Next to read:
MethodsDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
