set Style
Loads a new map style from the specified bundled style.
This method is asynchronous and will return before the style finishes loading. If you wish to wait for the map to finish loading, listen to the MapView.OnDidFinishLoadingStyleListener callback or use the setStyle method instead.
If the style fails to load or an invalid style URL is set, the map view will become blank. An error message will be logged in the Android logcat and MapView.OnDidFailLoadingMapListener callback will be triggered.Parameters
The bundled style
See also
Loads a new map style from the specified bundled style.
If the style fails to load or an invalid style URL is set, the map view will become blank. An error message will be logged in the Android logcat and MapView.OnDidFailLoadingMapListener callback will be triggered.
Parameters
The bundled style
The callback to be invoked when the style has loaded
See also
Loads a new map style from the specified builder.
If the builder fails to load, the map view will become blank. An error message will be logged in the Android logcat and MapView.OnDidFailLoadingMapListener callback will be triggered. If you wish to wait for the map to finish loading, listen to the MapView.OnDidFinishLoadingStyleListener callback or use the setStyle instead.
Parameters
The style builder
See also
Loads a new map style from the specified builder.
If the builder fails to load, the map view will become blank. An error message will be logged in the Android logcat and MapView.OnDidFailLoadingMapListener callback will be triggered.
Parameters
The style builder
The callback to be invoked when the style has loaded