<!--
{
  "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 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKOverlayRenderer/setNeedsDisplay(_:zoomScale:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKOverlayRenderer(im)setNeedsDisplayInMapRect:zoomScale:"
  },
  "title" : "setNeedsDisplay(_:zoomScale:)"
}
-->

# setNeedsDisplay(_:zoomScale:)

Invalidates the specified portion of the overlay, but only at the specified zoom scale.

```
func setNeedsDisplay(_ mapRect: MKMapRect, zoomScale: MKZoomScale)
```

## Parameters

`mapRect`

The portion of the overlay to update. Specify this value using a map coordinates.

`zoomScale`

The zoom scale for which you want to invalidate the overlay.

## Discussion

Marking a rectangle as invalid causes that portion of the overlay to be redrawn during the next update cycle. This method invalidates the overlay only at the specified zoom scale.

---

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)