public protocol PolygonTileSource : TileSource

A source of geodetic polygon tiles. Polygons provided by an implementation must be clipped to the boundaries of the requested tile. 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.

  • Load data of a tile. Upon completion, the handler gets informed.

    Declaration

    Swift

    func loadTile(tileKey: TileKey, completionHandler: PolygonTileSourceLoadResultHandler) -> TileSourceLoadTileRequestHandle?

    Parameters

    tileKey

    Key of the tile to load data for.

    completionHandler

    Load result handler.

    Return Value

    A handle to the created load request.