MKMapView.SetRegion(MKCoordinateRegion, Boolean) MKMapView.SetRegion(MKCoordinateRegion, Boolean) Method

Definition

Changes the region dispalyed on the map.

[Foundation.Export("setRegion:animated:")]
public virtual void SetRegion (MapKit.MKCoordinateRegion region, bool animated);
abstract member SetRegion : MapKit.MKCoordinateRegion * bool -> unit
override this.SetRegion : MapKit.MKCoordinateRegion * bool -> unit

Parameters

region
MKCoordinateRegion MKCoordinateRegion

The region to display.

animated
Boolean Boolean

A boolean indicating if the transition to the new region should be animated.

Remarks

If the region does not fit, the map view will adjust it so that it is visible.

Applies to