loadSceneFromConfigurationFile abstract method

void loadSceneFromConfigurationFile(
  1. String configurationFile,
  2. MapSceneLoadSceneCallback? callback
)

Asynchronously loads a map scene described by a specified file in one of the supported formats.

Any previous map scene config will be replaced.

When loading the same file again, consider to call reloadScene() instead.

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.

  • configurationFile Map scheme configuration file. It must contain the whole scene configuration. In case it contains references to other files, they have to be reachable under the paths specified in the main configuration file.

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

Implementation

void loadSceneFromConfigurationFile(String configurationFile, MapSceneLoadSceneCallback? callback);