<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKTileOverlay/loadTile(at:result:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKTileOverlay(im)loadTileAtPath:result:"
  },
  "title" : "loadTile(at:result:)"
}
-->

# loadTile(at:result:)

Loads the specified tile asynchronously.

```
func loadTile(at path: MKTileOverlayPath, result: @escaping @Sendable (Data?, (any Error)?) -> Void)
```

## Parameters

`path`

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.

`result`

The completion block to call when the tile data is available. The method can execute this block on any queue and takes the following parameters:

- The `tileData` parameter contains the raw data that loads from the corresponding image file. You can use this data to initialize an image object. If an error occurs, this parameter is `nil`.
- The `error` parameter contains an error object if there is a problem loading the tile image. If no errors occur, this parameter is `nil`.

## Discussion

The default implementation of this method uses the [`url(forTilePath:)`](/documentation/MapKit/MKTileOverlay/url(forTilePath:)) method to retrieve the URL for the specified tile and then loads that tile into memory asynchronously using a <doc://com.apple.documentation/documentation/Foundation/URLSession> 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 [`MKTileOverlayRenderer`](/documentation/MapKit/MKTileOverlayRenderer)) needs to display tiles, it uses this method to request the data for each tile.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)