I’m developing an app which needs to rotate the mapView with a compass. I know how to rotate the camera but I need to rotate the mapView with the compass. the center point should be the current location. I found codes for Maps V1 but I need to do it with Maps V2
Share
OK, i figured it out myself. first you need to calculate the bearing from the compass.
then the Maps api-2 camera can be rotated.
set
SensorListenerin your code and call this method inonSensorChangedevent. i have added a tilt value so the map will rotate in 3D.