<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKOverlay/canReplaceMapContent()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(pl)MKOverlay(im)canReplaceMapContent"
  },
  "title" : "canReplaceMapContent()"
}
-->

# canReplaceMapContent()

Returns a Boolean value that indicates whether the overlay content replaces the underlying map content.

```
optional func canReplaceMapContent() -> Bool
```

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the map view can skip the loading and drawing of the underlying map tiles, or <doc://com.apple.documentation/documentation/Swift/false> if the map view needs to draw the tiles.

## Discussion

The map view uses the return value of this method as a hint to determine whether it loads and renders its tiles. If your overlay covers its designated region entirely with opaque content, and effectively replaces the content of underlying map tiles, implement this method and return <doc://com.apple.documentation/documentation/Swift/true>. Doing so alleviates the need for the map to render its tiles.

If you don’t implement this method, or if you return <doc://com.apple.documentation/documentation/Swift/false> from it, the map view continues to load and render its tiles.

---

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)