Instance Method

mapPointForPoint:

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

Declaration

- (MKMapPoint)mapPointForPoint:(CGPoint)point;

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 drawMapRect:zoomScale:inContext: method.

See Also

Converting Points on the Map

- pointForMapPoint:

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

- rectForMapRect:

Returns the rectangle in the overlay renderer’s drawing area corresponding to the specified rectangle on the map.

- mapRectForRect:

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