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?
Register an event
Copy Markdown
Open in ChatGPT
Open in Claude
3D map can trigger some events. You can observe these events by calling registerEventmethod.
Javascript
FnoMapManager.registerEvent("mouseClickContainer", (data) => { console.log("Container clicked:", data) });The best place to register an event is in the loaded callback function.
Example
For the "mouseClickContainer", the event trigger when user click on a 3d container:
Javascript
x
const fnoToken = "<YOUR-FNO-TOKEN>"; // provided by the 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(){ FnoMapManager.registerEvent("mouseClickContainer", (data) => { // user clicked on a container in the 3d map console.log("Container clicked:", data) }); })});All events are located in Events from unity section
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Next to read:
Send an eventDiscard 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