setVisibleMapRect(_:edgePadding:animated:)
Changes the currently visible portion of the map, allowing you to specify additional space around the edges.
Declaration
func setVisibleMapRect(_ mapRect: MKMapRect, edgePadding insets: UIEdgeInsets, animated animate: Bool)func setVisibleMapRect(_ mapRect: MKMapRect, edgePadding insets: NSEdgeInsets, animated animate: Bool)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 True if you want the map view to animate the transition to the new map rectangle or False if you want the map to center on the specified rectangle immediately.