pointForMapPoint:
Returns the point in the overlay view that corresponds to specified point on the map.
Declaration
- (CGPoint) pointForMapPoint:(MKMapPoint) mapPoint;Parameters
- mapPoint:
A point on the two-dimensional map projection. If you have a coordinate value (latitude and longitude), you can use the Init(_:) function to convert that coordinate to a map point.
Return Value
The point in the receiver’s coordinate system that corresponds to the map point.
Discussion
Because the bounds and frame rectangles of an overlay view do not change after the view has been created, you may call this method from multiple threads simultaneously. Therefore, you may call this method safely from your view’s drawMapRect:zoomScale:inContext: method.