convert(_:toPointTo:)
Converts a map coordinate to a point in the specified view.
Declaration
func convert(_ coordinate: CLLocationCoordinate2D, toPointTo view: UIView?) -> CGPointfunc convert(_ coordinate: CLLocationCoordinate2D, toPointTo view: NSView?) -> CGPointParameters
- coordinate:
The map coordinate that you want to find the corresponding point for.
- view:
The view where you want to locate the specified map coordinate. If this parameter is
nil, the method specifies the returned point in the window’s coordinate system. Ifviewisn’tnil, the point belongs to the same window as the map view.
Return Value
The point (in the appropriate view or window coordinate system) corresponding to the specified latitude and longitude value.