Setup and load map

First of all, you have to load our SDK into your project. Insert these following scripts into your HTML file:

HTML
Copy
  • 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)

Javascript
Copy

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:

NameTypeDescription
idMapnumberthe "id" map you want to load (given by Find & Order)
divContainerstringa div "id" where the map is displayed
callbackFuncFunctioncalled when map is ready

Now, the map is shown and you can interact with, using events in next chapter

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
On This Page
Setup and load map