Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map orientation "direction heading" #2624

Closed
DennisKempel opened this issue Feb 28, 2021 · 3 comments
Closed

Map orientation "direction heading" #2624

DennisKempel opened this issue Feb 28, 2021 · 3 comments

Comments

@DennisKempel
Copy link

When mapping I would prefer the map orientation "direction I am heading to" over all else. I now this exists and thanks also for making the movements more smooth with some recent update. However, after having answered the first quest the app does not seem to get back into the "direction heading mode" and pressing the littel compass item only switches between north and some other direction, but it never seems to be the real direction I am heading in.

How to Reproduce
Map some quest while in "direction heading map orientation mode"

Versions affected
Android, latest

@westnordost
Copy link
Member

#1040

@DennisKempel
Copy link
Author

...not sure. I have read the other issue, but it seems to be related to magnets? I have no issue with my Pixel 3 and compass mode on Google maps, for example. Also, it does work on start in SC, just no more after having answered the first quest. It seems to me.

But nevermind, I appreciate the great work you do on SC and love mapping the world with it.

@mnalis
Copy link
Member

mnalis commented Feb 28, 2021

@DennisKempel yes, magnets (also called "compass") is what mobile phones often use to see in which direction they are pointing - it only works if the phone is held (mostly) horizontally. That compass/magnet reading then can be used either to show the user direction it is facing, or to rotate whole map so physical area in front of user is on the upper)part of the phone screen "in front of" point showing user position.

This is the way SC currently determines direction you are facing, and is very useful as you can (for example) simply rotate to your right and map also rotates in such a way that what you see in front of you is in front (on the top part) of your screen.
Unfortunately, that does not work well if you are either not holding your phone horizontally, or if you are having magnets or electromagnetically active devices close to you phone, of if your phone does not happen to have compass (Pixel3 does).

The other way to determine the direction (that you are generally going in) is to sample your GPS coordinates over some distance, and then calculate in what direction you seem to be going. Advantage of that method is it can work if your compass doesn't work and is less jittery. The disadvantage is that it is also more lagging (ie. if you change direction it won't change instantly but after some number of meters if traveled), it will always show average if you are moving in zig-zag pattern (so never showing correct direction in that case), and it cannot show you direction unless you are actively moving (ie. you have to walk for example 50m in one direction for it to pick it up - if you just rotate in place, it won't detect you are now looking in another direction).

So, #1040 was about adding support for this mode of operation too (if user chooses that).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants