loadSceneForMapScheme abstract method

void loadSceneForMapScheme(
  1. MapScheme mapScheme,
  2. MapSceneLoadSceneCallback? callback
)

Asynchronously loads a map scene described by a specified map scheme.

Any previous map scene config will be replaced. The loaded scene is cached and so any changes made to the scene files on disk might not get reflected on a successive call to this function. Instead the reloadScene API can handle such use-cases to force-update the scene.

Map features enabled or disabled using MapScene.enableFeatures and MapScene.disableFeatures will be reset to defaults for the new scene configuration.

The callback is called on the main thread.

  • mapScheme Map scheme.

  • callback Optional callback that will receive the result of this operation.

Implementation

void loadSceneForMapScheme(MapScheme mapScheme, MapSceneLoadSceneCallback? callback);