Instance Method

setNeedsDisplayInMapRect:

Invalidates the specified portion of the overlay at all zoom scales

Declaration

- (void)setNeedsDisplayInMapRect:(MKMapRect)mapRect;

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

- canDrawMapRect:zoomScale:

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

- drawMapRect:zoomScale:inContext:

Draws the overlay’s contents at the specified location on the map.

- setNeedsDisplay

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

- setNeedsDisplayInMapRect:zoomScale:

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