Loads the specified tile asynchronously.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.2+
The path structure that identifies the specific tile you want. This structure incorporates the tile’s X-Y coordinate at a given zoom level and scale factor.
The completion block to call when the tile data is available. This block is executed on your app’s main thread and takes the following parameters:
tileparameter contains the raw data loaded from the corresponding image file. You can use this data to initialize an image object. If an error occurred, this parameter is
errorparameter contains an error object if there was a problem loading the tile image. If no errors occurred, this parameter is
The default implementation of this method uses the
url(for method to retrieve the URL for the specified tile and then loads that tile into memory asynchronously using an
NSURLConnection object. The specified tile may be located either on the local file system or on a remote server. Subclasses may override this method and implement their own custom tile-loading behavior.
When a tile overlay renderer (that is, an instance of
MKTile) needs to display tiles, it uses this method to request the data for each tile.