MapKit.MKGeodesicPolyline Class
An MapKit.MKPolyline that represents the great-circle distance between two locations.

See Also: MKGeodesicPolyline Members

Syntax

[Foundation.Register("MKGeodesicPolyline", true)]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.Mac_10_0 | ObjCRuntime.Platform.Mac_10_1 | ObjCRuntime.Platform.Mac_10_2 | ObjCRuntime.Platform.Mac_10_3 | ObjCRuntime.Platform.Mac_10_4 | ObjCRuntime.Platform.Mac_10_5 | ObjCRuntime.Platform.Mac_10_6 | ObjCRuntime.Platform.Mac_10_7 | ObjCRuntime.Platform.Mac_10_8 | ObjCRuntime.Platform.Mac_10_9 | ObjCRuntime.Platform.Mac_10_10 | ObjCRuntime.Platform.Mac_Version | ObjCRuntime.Platform.Mac_Arch64 | ObjCRuntime.Platform.Mac_Arch)]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_7_0)]
public class MKGeodesicPolyline : MKPolyline

Remarks

The following example illustrates the geodesic between New York and Rome:

C# Example

var c = MKGeodesicPolyline.FromCoordinates(new CLLocationCoordinate2D[] {
	jfk,
	fco
});

mapView.AddOverlay(c, MKOverlayLevel.AboveLabels);
mapView.GetRendererForOverlay = (mv, ol) => new MKPolylineRenderer(c){LineWidth = 5.0f, StrokeColor = UIColor.Purple};
          

Related content

Requirements

Namespace: MapKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0