loadScene abstract method
- MapSceneLoadOptions options,
- MapSceneLoadSceneCallback? callback
Asynchronously loads a map scene using MapSceneLoadOptions.
This is an unified API that supports loading from either a map scheme or configuration file, with optional feature and watermark configuration. It's more efficient to load the scene with this function by specifying the list of enabled features and disabled features, compared to loading the scene first and enabling or disabling map features in the scene loading callback function.
Configuration defaults are used for features that are not part of the enabled features or disabled features parameters. When a feature is in both the enabled and disabled lists, the feature is considered as requested to be enabled. If the same feature is present multiple times in the enabled list with different modes, then the feature is considered as requested to be enabled, but with an unspecified mode (any of the many specified in the enabled list).
Any previous map scene config will be replaced. The callback is called on the main thread.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
optionsScene configuration options created using MapSceneLoadOptionsBuilder. -
callbackOptional callback that will receive the result of this operation.
Implementation
void loadScene(MapSceneLoadOptions options, MapSceneLoadSceneCallback? callback);