How to rotate Google Map according to Device Compass Value?

google-maps-sdk-ios, ios, iphone, objective-c

Solution

Seems like there is no direct step for this functionality in Google Maps iOS SDK. You can possibly achieve the required effect by combining the below 2 functions:

1, Occasionally read the current bearing using locationManager:didUpdateHeading:. Check this post to see the usage

2, When you get a new bearing value, set the bearing using [mapView_ animateToBearing:x];

Problem

i am using Latest Google Map SDK for iOS in which i am not able to rotate Map like below. For Eg. MKMapview is able to rotate it with Compass Heading. ``` [mapView setUserTrackingMode:MKUserTrackingModeFollowWithHeading animated:YES]; ``` So My Question is is there any buddy help me out to find out how to Get that thing to be done in Google MAP SDK. i have referred every thing about Google Map SDK i din't find any such property or any method to rotate Map according Device Compass value. i have referred this link about Compass value but i could not find anything related to that. https://developers.google.com/maps/documentation/ios/map

Original source

Related problems