Contents

setVisibleMapRect(_:animated:)

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

Declaration

func setVisibleMapRect(_ mapRect: MKMapRect, animated animate: Bool)

Parameters

  • mapRect:

    The map rectangle to make visible in the map view.

  • 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.

See Also

Manipulating the visible portion of the map