Contents

centerCoordinate

The map coordinate at the center of the map view.

Declaration

var centerCoordinate: CLLocationCoordinate2D { get set }

Discussion

Changing the value in this property centers the map on the new coordinate without changing the current zoom level. It also updates the values in the region property to reflect the new center coordinate and the new span values needed to maintain the current zoom level.

Changing the value of this property updates the map view immediately. If you want to animate the change, use the setCenter(_:animated:) method instead.

See Also

Manipulating the visible portion of the map