Contents

convert(_:toCoordinateFrom:)

Converts a point in the specified view’s coordinate system to a map coordinate.

Declaration

func convert(_ point: CGPoint, toCoordinateFrom view: UIView?) -> CLLocationCoordinate2D
func convert(_ point: CGPoint, toCoordinateFrom view: NSView?) -> CLLocationCoordinate2D

Parameters

  • point:

    The point you want to convert.

  • view:

    The view that serves as the reference coordinate system for the point parameter.

Return Value

The map coordinate at the specified point.

See Also

Converting map coordinates