ResourceOptions
extension ResourceOptions
-
Intializer for
ResourceOptions
Declaration
Swift
public convenience init(accessToken: String, baseUrl: String? = nil, cachePath: String? = nil, assetPath: String? = nil, tileStorePath: String? = nil, loadTilePacksFromNetwork: NSNumber? = nil, cacheSize: UInt64 = (1024*1024*10))
Parameters
accessToken
Your mapbox access API token.
baseUrl
The base URL.
cachePath
The path to the cache.
assetPath
The path to the assets.
tileStorePath
The path to the tile store.
loadTilePacksFromNetwork
Detemines if tiles pack should or should not be avoided from the network.
cacheSize
The size of the cache.
-
Undocumented
Declaration
Swift
public var cacheSize: UInt64? { get }