A point on a two-dimensional map projection.
- iOS 4.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.2+
- watchOS 2.0+
If you project the curved surface of the globe onto a flat surface, what you get is a two-dimensional version of a map where longitude lines appear to be parallel. Such maps are often used to show the entire surface of the globe all at once. An
MKMap data structure represents a point on this two-dimensional map.
The actual units of a map point are tied to the underlying units used to draw the contents of an
MKMap, but you should never need to worry about these units directly. You use map points primarily to simplify computations that would be complex to do using coordinate values on a curved surface. By converting to map points, you can perform those calculations on a flat surface, which is generally much simpler, and then convert back as needed. You can map between coordinate values and map points using the
When saving map-related data to a file, you should always save coordinate values (latitude and longitude) and not map points.