convert(_:toCoordinateFrom:)
Converts a point in the specified view’s coordinate system to a map coordinate.
Declaration
func convert(_ point: CGPoint, toCoordinateFrom view: UIView?) -> CLLocationCoordinate2Dfunc convert(_ point: CGPoint, toCoordinateFrom view: NSView?) -> CLLocationCoordinate2DParameters
- point:
The point you want to convert.
- view:
The view that serves as the reference coordinate system for the
pointparameter.
Return Value
The map coordinate at the specified point.