MKMapPoint Struct

Definition

A location in a 2D map projection.

public struct MKMapPoint
type MKMapPoint = struct
Inheritance
MKMapPoint

Remarks

Map Kit uses a Mercator projection with the Prime Meridian as its central meridian. An MKMapPoint represents a 2D point on that projection.

Map projections are a complex topic. The essential challenge is that any projection of a sphere onto a 2D plane will involve some distortions. The Mercator projection is a standard cylindrical projection that distorts large objects, particulary towards the poles. The distortion depends on the zoom factor of the map, as well.

MKMapPoint are the 2D coordinates of a Mercator projection in Map Kit. Application developers can use them, for instance, with the MKMapSize and MKMapRect types, but will generally use either T:MapKit.CLLocationCoordinate2D types, which encapsulate the concept of latitude and longitude.

To convert from MKMapPoints to other types, use:

Target TypeRelevant methods
CLLocationCoordinate2D ToCoordinate(MKMapPoint)
MKCoordinateRegion FromMapRect(MKMapRect)
PointF PointForMapPoint(MKMapPoint)
PointF PointForMapPoint(MKMapPoint)
RectangleF RectForMapRect(MKMapRect)

Constructors

MKMapPoint(Double, Double)

Fields

X
Y

Methods

Equals(Object)
FromCoordinate(CLLocationCoordinate2D)
GetHashCode()
ToCoordinate(MKMapPoint)
ToString()

Operators

Equality(MKMapPoint, MKMapPoint)
Inequality(MKMapPoint, MKMapPoint)

Applies to