initViewerMode

Instance a new instance for viewer mode (used for your end-user with no structural modification)

Parameters

Name

Type

Description

token

string

The token used for loading the map. Can be found in our bakcoffice webapp

culture

string

(optional) The language used (Default is **'**fr')

apiUrl

string

(optional) The URL environment (default is PROD 'https://api.findnorder.com/')

Result

Return true or false if SDK can't init

Example

const fnoToken = "<YOUR-FNO-TOKEN>"; // provided by the backoffice const fnoMapId = "<MAP-ID>" // id of the map to load let FnoMapManager; // wait page is loaded window.addEventListener("load", function(){ // sdk is definied in the global variable "FnoMapManager" in window object FnoMapManager = window.FnoMapManager; FnoMapManager.initViewerMode(fnoToken); FnoMapManager.loadMap(idMap, 'MapContainer', function(){ console.log("3d map loaded"); }) });