Find & Order
v1.0
Page
Code Steps
Category
Label
Link
Separator
Title
Message
Page icon
No icon. This page keeps the plain index row.
orSVG or PNG, square, at least 32×32.
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?
loadMap
Copy Markdown
Open in ChatGPT
Open in Claude
Load a map and display it into a specific HTML element.
Parameters
Name | Type | Description |
|---|---|---|
idMap | number | The id of the map loaded |
canvas | string | The canvas where to display the 3D map |
callback | Function | The callback, called after map is loaded and ready. |
Example
const fnoToken = "<YOUR-FNO-TOKEN>"; // provided by the backoffice
const fnoMapId = "<MAP-ID>" // id of the map to load
let FnoMapManager;
window.addEventListener("load", function(){
FnoMapManager = window.FnoMapManager;
FnoMapManager.initViewerMode(fnoToken)
FnoMapManager.loadMap(idMap, '3dMapContainer', function(data){
// map loaded
console.log("Maintenance mode", data.isUnderMaintenance)
})
});
Callback params
Callback function take a data paramter that contain:
Name | Type | Description |
|---|---|---|
isUnderMaintenance | boolean | If true, 3D map is not available, you can use this for shows popup to final user with custom message |
Last updated on
Next to read:
sendEventnull
Discard 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
