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

See Also: MKGeodesicPolyline Members

Syntax

[MonoTouch.Foundation.Register("MKGeodesicPolyline", true)]
[MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.Mac_10_0 | MonoTouch.ObjCRuntime.Platform.Mac_10_1 | MonoTouch.ObjCRuntime.Platform.Mac_10_2 | MonoTouch.ObjCRuntime.Platform.Mac_10_3 | MonoTouch.ObjCRuntime.Platform.Mac_10_4 | MonoTouch.ObjCRuntime.Platform.Mac_10_5 | MonoTouch.ObjCRuntime.Platform.Mac_10_6 | MonoTouch.ObjCRuntime.Platform.Mac_10_7 | MonoTouch.ObjCRuntime.Platform.Mac_10_8 | MonoTouch.ObjCRuntime.Platform.Mac_10_9 | MonoTouch.ObjCRuntime.Platform.Mac_10_10 | MonoTouch.ObjCRuntime.Platform.Mac_Version | MonoTouch.ObjCRuntime.Platform.Mac_Arch64 | MonoTouch.ObjCRuntime.Platform.Mac_Arch)]
[MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.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: MonoTouch.MapKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0