Class: Go3dMapLoader

Go3dMapLoader

A class responsible for loading and managing 3D maps.

new Go3dMapLoader()

GoMap/Go3dMapLoader/index.ts, line 8

Methods

staticGo3dMapLoader.getEnviroment(){string}

GoMap/Go3dMapLoader/index.ts, line 107

Gets the current enviroment.

Returns:
Type Description
string The enviroment.

staticGo3dMapLoader.getMap(mapId){GoMap|undefined}

GoMap/Go3dMapLoader/index.ts, line 83

Gets a map instance by its ID.

Name Type Description
mapId string

The ID of the map.

Returns:
Type Description
GoMap | undefined The map instance, or undefined if not found.

staticGo3dMapLoader.getMapConfig(){Go3dMapConfig}

GoMap/Go3dMapLoader/index.ts, line 99

Gets the current map configuration.

Returns:
Type Description
Go3dMapConfig The map configuration.

staticGo3dMapLoader.getMaps(){Map.<string, GoMap>}

GoMap/Go3dMapLoader/index.ts, line 91

Gets all map instances.

Returns:
Type Description
Map.<string, GoMap> A map of all map instances.

staticGo3dMapLoader.load(params){Promise.<void>}

GoMap/Go3dMapLoader/index.ts, line 27

Loads the 3D map configuration and initializes maps.

Name Type Description
params Object

The parameters for loading the map.

Name Type Default Description
mapConfig Go3dMapConfig

The configuration for the 3D map.

enviroment string

The enviroment in which the map will be loaded.

userToken string optional

An optional token for the user.

useBackendFeatures boolean true optional

Whether to use backend features.

Returns:
Type Description
Promise.<void> A promise that resolves when the maps have been loaded.