MKMapView.ConvertCoordinate 方法

定义

重载

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

将地图坐标转换为点。

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

参数

toPointToView
NSView

返回

属性

适用于

ConvertCoordinate(CLLocationCoordinate2D, UIView)

将地图坐标转换为点。

[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

参数

coordinate
CLLocationCoordinate2D

要转换的坐标。

toPointToView
UIView

应使用其坐标系转换地图坐标的视图。

此参数可以为 null

返回

指定视图的坐标系中的转换点。

属性

注解

如果未指定视图,则点将相对于窗口。

适用于