Instance Method

setVisibleMapRect:animated:

Changes the currently visible portion of the map and optionally animates the change.

Declaration

- (void)setVisibleMapRect:(MKMapRect)mapRect animated:(BOOL)animate;

Parameters

mapRect

The map rectangle to make visible in the map view.

animate

Specify YES if you want the map view to animate the transition to the new map rectangle or NO if you want the map to center on the specified rectangle immediately.

See Also

Manipulating the Visible Portion of the Map

region

The area currently displayed by the map view.

setRegion:animated:

Changes the currently visible region and optionally animates the change.

centerCoordinate

The map coordinate at the center of the map view.

setCenterCoordinate:animated:

Changes the center coordinate of the map and optionally animates the change.

showAnnotations:animated:

Sets the visible region so that the map displays the specified annotations.

visibleMapRect

The area currently displayed by the map view.

setVisibleMapRect:edgePadding:animated:

Changes the currently visible portion of the map, allowing you to specify additional space around the edges.