AdsumWebMap
Constructor
constructor
constructor(options: Options): AdsumWebMap
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
| options | Options | object | Yes | The AdsumWebMap 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
getDeviceId(): ?number
Get the current device ID used to load the Calibration, null if none.
Returns:
Type: ?number
init
async init(): Promise<void, Error>
Init the map using the loader provided in options.
Returns:
Type: Promise<void, Error>
start
start(): void
Start the rendering loop.
Returns:
Type: void
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>
