Instance Method

setVisibleMapRect:edgePadding:animated:

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

Declaration

iOS, tvOS
- (void)setVisibleMapRect:(MKMapRect)mapRect edgePadding:(UIEdgeInsets)insets animated:(BOOL)animate;
macOS
- (void)setVisibleMapRect:(MKMapRect)mapRect edgePadding:(NSEdgeInsets)insets animated:(BOOL)animate;

Parameters

mapRect

The map rectangle to make visible in the map view.

insets

The amount of additional space (measured in screen points) to make visible around the specified rectangle.

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:animated:

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