MapDisplayDataProvider

public protocol MapDisplayDataProvider

The MapDisplayDataProvider protocol that can be used to add custom tile data providers. FileOutput - Default logger output - prints logs using Swift.print

Important

This API is for internal use only. It may be changed or removed at any time without prior notice.
  • Registers interest in a tile.

    Declaration

    Swift

    func registerInterestInTile(
        urlString: String,
        allowsCaching: Bool,
        completion: @escaping (Result<Data, Error>) -> ()
    ) -> MapDisplayDataRequestToken?

    Parameters

    urlString

    The tile URL string.

    allowsCaching

    Specifies whether the resource should be cached for future calls.

    completion

    The completion closure will be called after the response to the request has been processed and any time aftewards when the tile data is updated.

  • Should return true if the provider can handle the URL.

    Declaration

    Swift

    func accepts(urlString: String) -> Bool