MapKit.MKMapView.MapRectThatFits Method
Adjusts the width and height of a map rectangle so it fits in the map view's frame, including accounting for padding between the frame and the map rectangle.

Syntax

[Foundation.Export("mapRectThatFits:edgePadding:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_4_0)]
public virtual MKMapRect MapRectThatFits (MKMapRect mapRect, UIKit.UIEdgeInsets edgePadding)

Parameters

mapRect
The rectangle that needs to be adjusted to fit in the map view's frame.
edgePadding
The insets values to pad the map rectangle with.

Returns

The adjusted rectangle.

Remarks

The center point of the map remains unchanged.

Requirements

Namespace: MapKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0