How to set the MKMapView viewing angle and turn off the 3D building?

I am currently working on a navigation application. Is there a way to set the viewing angle in MapKit? I know that the Google Map iOS SDK has it as one of the options in the viewing camera that you can set, but I could not find it in MapKit.

Is there also a bool value to disable a 3D building? They annoy the navigation app a bit.

Thanks in advance!

+5
source share
4 answers

Add to viewDidLoador viewWillAppear:

self.mapView.pitchEnabled = YES;   
self.mapView.pitchEnabled = NO;
+9
source
        self.mapView.showsBuildings = false

(quick code) Turns off buildings.

+1
source

pitch, . , mapview.pitch mapview.camera.pitch , . showbuildng NO.

0

Swift 4

mapView.settings.tiltGestures = false
0

All Articles