createStyleMapControllers

fun createStyleMapControllers(    map: MapboxMap,     cacheCurrentMapStyle: Boolean = true,     styles: List<String> = emptyList())

Create cache controllers for a map instance. Call when a new map instance is available.

Parameters

map

an instance of MapboxMap

cacheCurrentMapStyle

flag to indicate if the current map style should be cached or not. Current map style is cached by default and shouldn't be added to the list of styles.

styles

a list of Mapbox style URIs to cache. If no styles are passed current map's style will be cached. Only styles hosted on Mapbox Services are supported. Only non-volatile styles will be cached.