Contents

setNeedsDisplay(_:)

Invalidates the specified portion of the overlay at all zoom scales.

Declaration

func setNeedsDisplay(_ mapRect: MKMapRect)

Parameters

  • mapRect:

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

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 regardless of the current zoom scale associated with the map.

See Also

Drawing the overlay