Instance Method

pointForCoordinate:

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

Declaration

iOS, Mac Catalyst, 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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software