MKMapView.SetRegion(MKCoordinateRegion, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The region to display.
- animated
- Boolean
A boolean indicating if the transition to the new region should be animated.
- Attributes
Remarks
If the region does not fit, the map view will adjust it so that it is visible.