MKMapView.MapRectThatFits MKMapView.MapRectThatFits Method

Definition

Overloads

MapRectThatFits(MKMapRect) MapRectThatFits(MKMapRect)

Adjusts the width and height of a map rectangle so it fist in the map view's frame.

MapRectThatFits(MKMapRect, NSEdgeInsets) MapRectThatFits(MKMapRect, NSEdgeInsets)
MapRectThatFits(MKMapRect, UIEdgeInsets) MapRectThatFits(MKMapRect, UIEdgeInsets)

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.

MapRectThatFits(MKMapRect) MapRectThatFits(MKMapRect)

Adjusts the width and height of a map rectangle so it fist in the map view's frame.

[Foundation.Export("mapRectThatFits:")]
public virtual MapKit.MKMapRect MapRectThatFits (MapKit.MKMapRect mapRect);
abstract member MapRectThatFits : MapKit.MKMapRect -> MapKit.MKMapRect
override this.MapRectThatFits : MapKit.MKMapRect -> MapKit.MKMapRect

Parameters

mapRect
MKMapRect MKMapRect

The rectangle that needs to be adjusted to fit in the map view's frame.

Returns

The adjusted rectangle.

Remarks

The center point of the map remains unchanged.

MapRectThatFits(MKMapRect, NSEdgeInsets) MapRectThatFits(MKMapRect, NSEdgeInsets)

[Foundation.Export("mapRectThatFits:edgePadding:")]
public virtual MapKit.MKMapRect MapRectThatFits (MapKit.MKMapRect mapRect, AppKit.NSEdgeInsets edgePadding);
abstract member MapRectThatFits : MapKit.MKMapRect * AppKit.NSEdgeInsets -> MapKit.MKMapRect
override this.MapRectThatFits : MapKit.MKMapRect * AppKit.NSEdgeInsets -> MapKit.MKMapRect

Parameters

Returns

MapRectThatFits(MKMapRect, UIEdgeInsets) MapRectThatFits(MKMapRect, UIEdgeInsets)

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.

[Foundation.Export("mapRectThatFits:edgePadding:")]
public virtual MapKit.MKMapRect MapRectThatFits (MapKit.MKMapRect mapRect, UIKit.UIEdgeInsets edgePadding);
abstract member MapRectThatFits : MapKit.MKMapRect * UIKit.UIEdgeInsets -> MapKit.MKMapRect
override this.MapRectThatFits : MapKit.MKMapRect * UIKit.UIEdgeInsets -> MapKit.MKMapRect

Parameters

mapRect
MKMapRect MKMapRect

The rectangle that needs to be adjusted to fit in the map view's frame.

edgePadding
UIEdgeInsets UIEdgeInsets

The insets values to pad the map rectangle with.

Returns

The adjusted rectangle.

Remarks

The center point of the map remains unchanged.

Applies to