Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Setup and load map
First of all, you have to load our SDK into your project. Insert these following scripts into your HTML file:
fno-sdk.js contains javascript SDK for map (unity) communication
UnityLoader.js is the unity player that will render 3d map
We strongly recommend to download these two links (SDK) for your production environment.
Init the map with your API Token when all scripts are loaded (token come from our customer backoffice)
FnoMapManager is available in a global window object.
initViewerMode this method initialize the sdk for "read-only" rights. (see editor section mode for editing maps).
initViewerMode must be called before loadMap method
loadMap method parameters:
Name | Type | Description |
|---|---|---|
idMap | number | the "id" map you want to load (given by Find & Order) |
divContainer | string | a div "id" where the map is displayed |
callbackFunc | Function | called when map is ready |
Now, the map is shown and you can interact with, using events in next chapter
