Assure the map is ready before changing the style. Learn more.
Updating Style Mode
Use theMapManager class to update your map to main or dark mode:
Style Containers
Style containers change the style of the map with pre-defined styles.Custom Style Container
To use a custom style container beyond the ones listed above, provide the light and main variants:path_provider package to help you generate the appropriate paths.
Traffic Visibility
Enable or disable traffic:Traffic Incidents Visibility
Enable or disable traffic incidents:Layers
Show or hide layers spcified in your style spec with:Assure the map style is loaded before updating a layer’s visibility. Learn more.