How to keep map orientation fixed towards North in android
Asked Answered
F

1

1

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.

Foreknowledge answered 16/4, 2019 at 3:6 Comment(0)
E
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

Enrica answered 16/4, 2019 at 5:52 Comment(3)
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 happeningForeknowledge
The thing you are looking is camera position bearing in map. you can find the documentation [here] (developers.google.com/android/reference/com/google/android/gms/…) set the bearing as 0.Enrica
on every location change i want to change camera positionForeknowledge

© 2022 - 2024 — McMap. All rights reserved.