Edit

Share via


MKMapView.ConvertCoordinate Method

Definition

Overloads

ConvertCoordinate(CLLocationCoordinate2D, NSView)
ConvertCoordinate(CLLocationCoordinate2D, UIView)

Converts a map coordinate to a point.

ConvertCoordinate(CLLocationCoordinate2D, NSView)

[Foundation.Export("convertCoordinate:toPointToView:")]
public virtual CoreGraphics.CGPoint ConvertCoordinate (CoreLocation.CLLocationCoordinate2D coordinate, AppKit.NSView toPointToView);
abstract member ConvertCoordinate : CoreLocation.CLLocationCoordinate2D * AppKit.NSView -> CoreGraphics.CGPoint
override this.ConvertCoordinate : CoreLocation.CLLocationCoordinate2D * AppKit.NSView -> CoreGraphics.CGPoint

Parameters

toPointToView
NSView

Returns

Attributes

Applies to

ConvertCoordinate(CLLocationCoordinate2D, UIView)

Converts a map coordinate to a point.

[Foundation.Export("convertCoordinate:toPointToView:")]
public virtual CoreGraphics.CGPoint ConvertCoordinate (CoreLocation.CLLocationCoordinate2D coordinate, UIKit.UIView toPointToView);
abstract member ConvertCoordinate : CoreLocation.CLLocationCoordinate2D * UIKit.UIView -> CoreGraphics.CGPoint
override this.ConvertCoordinate : CoreLocation.CLLocationCoordinate2D * UIKit.UIView -> CoreGraphics.CGPoint

Parameters

coordinate
CLLocationCoordinate2D

The coordinate to convert.

toPointToView
UIView

The view whose coordinate system should be used to convert the map coordinate.

This parameter can be null.

Returns

The converted point in the coordinate system of the specified view.

Attributes

Remarks

If a view is not specified, the point will be relative to the window.

Applies to