Instance Method

convertPoint:toCoordinateFromView:

Converts a point in the specified view’s coordinate system to a map coordinate.

Declaration

iOS, tvOS
- (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view;
macOS
- (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(NSView *)view;

Parameters

point

The point you want to convert.

view

The view that serves as the reference coordinate system for the point parameter.

Return Value

The map coordinate at the specified point.

See Also

Converting Map Coordinates

convertCoordinate:toPointToView:

Converts a map coordinate to a point in the specified view.

convertRegion:toRectToView:

Converts a map region to a rectangle in the specified view.

convertRect:toRegionFromView:

Converts a rectangle in the specified view’s coordinate system to a map region.