---
title: setNeedsDisplay()
framework: mapkit
role: symbol
role_heading: Instance Method
path: mapkit/mkoverlayrenderer/setneedsdisplay()
---

# setNeedsDisplay()

Invalidates the entire contents of the overlay for all zoom scales.

## Declaration

```swift
func setNeedsDisplay()
```

## Discussion

Discussion This method causes the entire contents of the overlay to be redrawn during the next update cycle. This method invalidates the overlay regardless of the current zoom scale associated with the map.

## See Also

### Drawing the overlay

- [canDraw(_:zoomScale:)](mapkit/mkoverlayrenderer/candraw(_:zoomscale:).md)
- [draw(_:zoomScale:in:)](mapkit/mkoverlayrenderer/draw(_:zoomscale:in:).md)
- [setNeedsDisplay(_:)](mapkit/mkoverlayrenderer/setneedsdisplay(_:).md)
- [setNeedsDisplay(_:zoomScale:)](mapkit/mkoverlayrenderer/setneedsdisplay(_:zoomscale:).md)
