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 more

    Declaration

    Swift

    struct BytesSequence : Sequence
  • Log

    For logging messages on console.

    The log format is <tag><Level> <message> [with error <error>]: Examples:

      [MapCache][DEBUG] Welcome to MapCache
      [MapCache][ERROR] Could not download file with error Unknown address
    
    
    See more

    Declaration

    Swift

    public struct Log
  • Settings of your MapCache.

    See more

    Declaration

    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 <= maxTileY
    

    Todo

    • There are no validations for the conditions above.
    • There are not validations for the min and max values.
    See more

    Declaration

    Swift

    public struct TileRange : Sequence
  • Iterator of a TileRange.

    See more

    Declaration

    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) // => 4
    

    It strictly stores z1 and z2, and the rest of the range is built upon request.

    See more

    Declaration

    Swift

    public struct ZoomRange : Sequence
  • Iterator that allows the use of ZoomRange in a for loop.

    See also

    IteratorProtocol
    See more

    Declaration

    Swift

    public struct ZoomRangeIterator : IteratorProtocol
  • Specifies a single tile and area of the tile that should upscaled.

    See more

    Declaration

    Swift

    public struct ZoomableTile