Knowing .NET Sometimes a coder who writes, sometimes a writer who codes. Formerly, a coder who edited magazines.

September 18, 2013

3D Maps in iOS 7 with Xamarin

Filed under: C#,iOS,Xamarin — larry @ 8:47 am

It’s trivially simple to show 3D maps in iOS 7:

    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;


Powered by WordPress