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