i want to keep my maps orientation always towards north .If the location changes towards left in driving mode ,It should always align it towards north.
Asked
Active
Viewed 979 times
1 Answers
0
Actually there are two orientations
1.North-up
2.Track-up
i think these both are pretty explainable by their name itself.
About the one you are asking is North-up.
The exact implementation of North-up is given here

MohanKumar
- 960
- 10
- 26
-
The one which i implement is that it gets rotated towards north only once at the start..but after map point moves left or right , it should move camera towards north at that time also which is not happening – Wahdat Jan Apr 16 '19 at 07:34
-
The thing you are looking is camera position **bearing** in map. you can find the documentation [here] (https://developers.google.com/android/reference/com/google/android/gms/maps/model/CameraPosition.Builder) set the bearing as 0. – MohanKumar Apr 16 '19 at 08:25
-
on every location change i want to change camera position – Wahdat Jan Apr 16 '19 at 14:34