How can I make the MapView compass snap to NORTH, when followUserLocation prop is enabled for Camera? #3485
Unanswered
ChimiChumi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@mfazekas
If I have followUserLocation set to true and I press on the compass to set it to north, it's glitching and keeps snapping back to where the orientation was. It doesn't change to North as the followUserLocation is set to true. I don't know how to make a workaround for this, as the MapView or the compass doesn't have any ways of listening for compass presses (as far as I know).
My expected behavior is:
if the user is not facing north, and decides to hit the compass button to reset orientation, the orientation should turn to north, while the user is walking (without affecting camera followmode)
Right now, this is my "Locate me" method:
Any help on how to solve this would be appreciated.
In this video you can see clearly what happens if I try pressing the compass. I was pressing it in each second so you can see the different behaviors. It keeps snapping back, it's not maintaining its NORTH orientation.
compass.mp4
Beta Was this translation helpful? Give feedback.
All reactions