fun createMapControllers(map: MapboxMap, sourceIdsToCache: List<String> = emptyList())

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



an instance of MapboxMap


a list of sources to cache. Source id's should look like "mapbox://mapbox.satellite", "mapbox://mapbox.mapbox-terrain-v2". The system only supports source hosted on Mapbox Services which URL starts with "mapbox://". If no ids are passed all available style sources will be cached.

Note: This method does not handle correct styles with volatile sources and caches them. Use createStyleMapControllers instead.