Instance Method

pointForCoordinate:

Converts the specified map coordinate to a point in the coordinate space of the image.

Declaration

iOS, tvOS
- (CGPoint)pointForCoordinate:(CLLocationCoordinate2D)coordinate;
macOS
- (NSPoint)pointForCoordinate:(CLLocationCoordinate2D)coordinate;

Parameters

coordinate

A map coordinate that you want to convert.

Return Value

The point in the image’s coordinate space that corresponds to the map location.

Discussion

If you want to display additional views or content on top of the image, you can use this method to find an appropriate point at which to draw those items.