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

Syntax

[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_7_0)]
[get: Foundation.Export("camera")]
[get: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_7_0)]
[set: Foundation.Export("setCamera:")]
[set: ObjCRuntime.Availability(Introduced=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: MapKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0