Android Question Rotate Google Map

Startup

Active Member
Licensed User
How do I get the Google Map to rotate so that positions in the direction I'm walking are on top of the screen and positions behind me are below on the screen ie: how to I get the bearing to adjust to the direction I'm traveling?
 

Startup

Active Member
Licensed User
You can set the bearing with CameraPosition.Initialize2 and GoogleMap.AnimateCamera.

You can use the GPS library to find the traveling bearing. You can use PhoneSensors to get the heading direction (TYPE_ORIENTATION).

That got me going in the right direction :). A bit to my surprise I was able to get it all to work OK. Thanks Erel!
 
Upvote 0
Top