Contents

mapPoint(for:)

Returns the point on the map that corresponds to the specified point in the overlay renderer’s drawing area.

Declaration

func mapPoint(for point: CGPoint) -> MKMapPoint

Parameters

  • point:

    The point in the overlay’s drawing area that you want to convert.

Return Value

The point on the two-dimensional map projection corresponding to the specified point.

Discussion

You may call this method safely from your view’s draw(_:zoomScale:in:) method.

See Also

Converting points on the map