Search code examples
iosios6mkmapview

MKMapView rotation


Apple's latest Maps application allows a user to rotate a map. How can I add this functionality to my MKMapView? I presumed it'd just be a case of setting a boolean property (similar to zoomEnabled), but I can't find anything relevant in the documentation.


Solution

  • There is no built-in rotation support in the MapKit of iOS. You could use regular view transforms (but than all street names etc. will also be rotated of course), or you use the Google Maps SDK or MapBox or something else.

    The Google Maps SDK does support rotation, even 3D rotation. The SDK Download includes an example project showcasing the functionality.