MonoTouch.MapKit.MKMapView.Camera Property
Defines the perspective of the map.

Syntax

[MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.iOS_7_0)]
[get: MonoTouch.Foundation.Export("camera")]
[get: MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.iOS_7_0)]
[set: MonoTouch.Foundation.Export("setCamera:")]
[set: MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.iOS_7_0)]
public virtual MKMapCamera Camera { get; set; }

See Also

MKMapView.SetCamera
MKMapView.PitchEnabled

Value

The default value is null.

Remarks

The following example shows how this property can be set to provide 3D imagery:

C# Example

var target = new CLLocationCoordinate2D(37.7952, -122.4028);
var viewPoint = new CLLocationCoordinate2D(37.8009, -122.4100);
//Enable 3D buildings
mapView.ShowsBuildings = true;
mapView.PitchEnabled = true;

var camera = MKMapCamera.CameraLookingAtCenterCoordinate(target, viewPoint, 500);
mapView.Camera = camera;
          

Requirements

Namespace: MonoTouch.MapKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0