Structures
The following structures are available globally.
-
Bytes sequence for the implementation of MD5 The following is an altered source version that only includes MD5. The original software can be found at: https://github.com/krzyzanowskim/CryptoSwift
See moreDeclaration
Swift
struct BytesSequence : Sequence -
Thin wrapper around os.Logger that automatically captures file, function and line numbers.
Usage:
See moreLog.cache.debug("my debug message") // prints: MapCache.swift[42]::myMethod -- my debug message Log.cache.error("tile not found with error \(error)") // prints: MapCache.swift[99]::fetchTile -- tile not found with error ... Log.diskcache.info("cache size calculated") // prints: DiskCache.swift[55]::calculateDiskSize -- cache size calculated Log.downloader.trace("network request started") // prints: RegionDownloader.swift[77]::start -- network request startedDeclaration
Swift
struct Log -
Settings of your MapCache.
See moreDeclaration
Swift
public struct MapCacheConfig -
For a particular zoom level, defines a range of tiles. It can be iterated in a for loop. It will get the
TileCoord`The following conditions shall always be true
minTileX <= maxTileX minTileY <= maxTileYSee moreTodo
- There are no validations for the conditions above.
- There are not validations for the min and max values.
Declaration
Swift
public struct TileRange : Sequence -
Iterator of a TileRange.
See moreDeclaration
Swift
public struct TileRangeIterator : IteratorProtocol -
A range of zooms. Matematically: [z1, z1+1, z1+2,…, z2-1, z2]
For instance: z1 = 2, z2 = 5 then [2, 3, 4, 5] would be the range.
Usage example:
let zR = ZoomRange(2,5).toArray() print(zR.count) // => 4It strictly stores z1 and z2, and the rest of the range is built upon request.
See moreDeclaration
Swift
public struct ZoomRange : Sequence -
Declaration
Swift
public struct ZoomRangeIterator : IteratorProtocol -
Specifies a single tile and area of the tile that should upscaled.
See moreDeclaration
Swift
public struct ZoomableTile
View on GitHub
Structures Reference