create Map Controllers
@JvmOverloads()
Content copied to clipboard
Create cache controllers for a map instance. Call when a new map instance is available.
Parameters
map
an instance of MapboxMap
sourceIdsToCache
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.