convert(_:from:)
Converts a point in the specified coordinate space to a map coordinate.
Declaration
func convert(_ point: CGPoint, from space: some CoordinateSpaceProtocol) -> CLLocationCoordinate2D?Parameters
- point:
The point to convert.
- space:
The reference coordinate space for
point.
Return Value
Returns a CLLocationCoordinate2D; or nil, if the specified point isn’t represented by a point in the MapReader associated with a Map.