MapDisplayDataProvider
public protocol MapDisplayDataProvider
The MapDisplayDataProvider protocol that can be used to add custom tile data providers.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Registers interest in a tile.
Declaration
Swift
func registerInterestInTile( urlString: String, completion: @escaping (Result<Data, MapDisplayDataProviderError>) -> () )Parameters
urlStringThe tile URL string.
completionThe completion closure will be called after the response to the request has been processed and any time aftewards when the tile data is updated.
-
Unregisters interest in a tile.
Declaration
Swift
func unregisterInterestInTile(urlString: String)Parameters
urlStringThe tile URL string.
-
Should return
trueif the provider can handle the URL.Declaration
Swift
func acceptsUrl(urlString: String) -> Bool
MapDisplayDataProvider Protocol Reference