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

(When no GPS signal) clicking GPS button does not return to North, even when follow-me is disabled #3147

Closed
mnalis opened this issue Aug 9, 2021 · 2 comments · Fixed by #3166
Assignees
Labels

Comments

@mnalis
Copy link
Member

mnalis commented Aug 9, 2021

If there is no GPS signal, clicking Compass button misbehaves, as SC does not seem to disengage follow-me mode in such situation (usually follow-me is enabled by clicking GPS icon, and disabled by scrolling the map).

What I would expect

  • when no GPS signal (and especially if I moved the map manually), follow-me mode should be disengaged, so pressing compass icon first time should rotate North to point up (it works that way when GPS signal is strong)

What actually happens

  • when no GPS signal, even after moving the map manually, follow-me mode refuses to disengage, and pressing compass button only switches between 2D/3D, never rotating the map to north again

How to Reproduce

  • Start SC in area where there is no GPS signal
  • move map to disengage possible follow-me mode
  • click on Compass, expecting it would rotate map to "North is up"
  • see it instead engages 3D follow-me mode, and that it will never rotate to "North is up" no matter how many times you press it (until you regain GPS signal strength)

Video example:

sc_nogps_tilt.mp4

Versions affected
EMUI 11 (Android 10), StreetComplete v33.2

@mnalis mnalis added the bug label Aug 9, 2021
@smichel17 smichel17 self-assigned this Aug 9, 2021
@smichel17
Copy link
Member

smichel17 commented Aug 9, 2021

I can reproduce this. Also, I noticed a possibly-related bug the other day: when I previously had a location fix, then turned off location services (the dot no longer appeared on the map), when I scrolled my previous position off screen, "current location direction" pointer would still appear. Fixed by closing the app completely (swiping away from recents) and re-opening.

I'm familiar with the relevant code and will look into both bugs sometime soon (maybe over the weekend?).

smichel17 added a commit to smichel17/StreetComplete that referenced this issue Aug 15, 2021
When location is first turned on, and you're set to follow the location,
but haven't yet found it, tapping the compass should behave as if you're
not following the location yet.

For streetcomplete#3147
@smichel17
Copy link
Member

Okay, so there's a few parts to this bug.

  1. The bug @mnalis reported with the compass — fixing this was easy, done in Don't enter compass mode before location is found  #3166.

  2. When location services are turned off, it doesn't automatically turn off compass mode. This should also be an easy fix.

  3. When location services are turned off, some part of this is not propagated to the part of the app that displays the location pointer pin. Needs a little more research.

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

Successfully merging a pull request may close this issue.

2 participants