LoadTileMode
public enum LoadTileMode
Defines the strategies that can be used for retrieving the tiles from the cache
Used by MapCache.loadTile()
method.
-
Default. If the tile exists in the cache, return it, otherwise, fetch it from server (and cache the result).
Declaration
Swift
case cacheThenServer
-
Always return the tile from the server unless there is some problem with the network. Cache is updated everytime the tile is received. Basically uses the cache as internet connection fallback
Declaration
Swift
case serverThenCache
-
Only return data from cache. Useful for fully offline preloaded maps.
Declaration
Swift
case cacheOnly
-
Always return the tile from the server, as well as updating the cache. This mode may be useful for donwloading a whole map region. If a tile was not downloaded fron the server error is returned.
Declaration
Swift
case serverOnly