Contents

setNeedsDisplayInMapRect:

Invalidates the view in the given map rectangle at all zoom scales.

Declaration

- (void) setNeedsDisplayInMapRect:(MKMapRect) mapRect;

Parameters

  • mapRect:

    The portion of the overlay that needs to be updated. This value is specified using a map rectangle and not view coordinates. You can convert from a view rectangle to a map rectangle using the Maprectforrect: method.

Discussion

Marking a rectangle as invalid causes that portion of the view 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