Instance Method

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

- canDrawMapRect:zoomScale:

Returns a Boolean value indicating whether the overlay view is ready to draw its content.

Deprecated
- drawMapRect:zoomScale:inContext:

Draws the contents of the overlay view.

Deprecated
- setNeedsDisplayInMapRect:zoomScale:

Invalidates the view in the given map rectangle but only at the specified zoom scale.

Deprecated