TileSource

public protocol TileSource : AnyObject

A source of tiles. The implementations must be thread-safe.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.

  • The tiling scheme used by this source.

    Declaration

    Swift

    var tilingScheme: TilingScheme { get }
  • The storage levels available for this data source. Supported range [0, 31].

    Declaration

    Swift

    var storageLevels: [Int32] { get }
  • Gets the current data version of a tile.

    Declaration

    Swift

    func getDataVersion(tileKey: TileKey) -> TileSourceDataVersion

    Parameters

    tileKey

    Key of the tile for which to retrieve the version.

    Return Value

    Data version for a tile.

  • Adds a delegate for receiving state notifications.

    Declaration

    Swift

    func addDelegate(_ delegate: TileSourceDelegate)

    Parameters

    delegate

    The delegate

  • Removes a delegate from receiving state notifications.

    Declaration

    Swift

    func removeDelegate(_ delegate: TileSourceDelegate)

    Parameters

    delegate

    Delegate to be removed from receiving state notifications.