AdsumNativeMap
Constructor
constructor
constructor(options: Options): AdsumNativeMap
Parameters:
Name | Type | Required | Description |
---|---|---|---|
options | Options | object | Yes | The AdsumNativeMap options. Can be an Options instance or directly the parameter to pass on the Options constructor |
Properties
cameraManager
Type | Read-Only | Default | Description |
---|---|---|---|
CameraManager | YES | new CameraManager(options.camera) |
engineManager
Type | Read-Only | Default | Description |
---|---|---|---|
EngineManager | YES | new EngineManager(options.engine) |
mouseManager
Type | Read-Only | Default | Description |
---|---|---|---|
MouseManager | YES | new MouseManager() |
objectManager
Type | Read-Only | Default | Description |
---|---|---|---|
ObjectManager | YES | new ObjectManager() |
sceneManager
Type | Read-Only | Default | Description |
---|---|---|---|
SceneManager | YES | new SceneManager() |
wayfindingManager
Type | Read-Only | Default | Description |
---|---|---|---|
WayfindingManager | YES | new WayfindingManager() |
Methods
getDeviceId
async getDeviceId(): Promise<?number, Error>
Get the current device ID used to load the Calibration, null if none.
Returns:
Type: Promise<?number, Error>
getProjector
getProjector(): Promise<AdsumProjector, Error>
Get the Adsum projector used to convert systems coordinates.
Returns:
Type: Promise<AdsumProjector, Error>
getWebViewProps
getWebViewProps(): object
Get the props required to initialized the WebView component.
Returns:
Type: object
init
async init(loaderOptions: LoaderOptions|object): Promise<void, Error>
Init the map using the loader provided in options.
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
loaderOptions | LoaderOptions | object | Yes | - | Can be an LoaderOptions instance or directly the parameter to pass on the LoaderOptions constructor |
Returns:
Type: Promise<void, Error>
start
async start(): Promise<void, Error>
Start the rendering loop.
Returns:
Type: Promise<void, Error>
stop
async stop(): Promise<void, Error>
Stop the rendering loop.
Returns:
Type: Promise<void, Error>
setDeviceId
async setDeviceId(deviceId: ?number, animated = true: boolean): Promise<void, Error>
Set the Device ID, it will reload the Calibration for this device and display the default floor.
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
deviceId | ?number | Yes | - | |
animated | boolean | No | true |
Returns:
Type: Promise<void, Error>