Streetcomplete: [8.4] View doesn't return to previos position after solving challenge

Created on 12 Nov 2018  路  9Comments  路  Source: westnordost/StreetComplete

In un-sticky-gps, after solving some quest the maps jumps to different location. It happens most of the times, but not always, usually with longer quests (type of road)

How to Reproduce

  • select quest (mostly surface type of the road)
  • the view zooms out
  • solve the quest
  • view jumps to different location (it seems it jumps to the start/end of the road) -- it should return to the previous view from which we selected the object

Versions affected
Android 7.1 Nougat
StreetComplete 8.4

bug

Most helpful comment

Would it be an improvement if not only the zoom is reset but also the position?

IMHO, yes. :smile:

All 9 comments

It jumps back to the location that you had in view before clicking on the quest.

Edit:
Ah nevermind, that is what you actually would expect. Well, then I cannot reproduce this.
Perhaps there is a misunderstanding. What do you mean with _un-sticky-gps_?

Sticky GPS: viewport follows GPS signal

Unsticky: viewport is not following GPS signal

@westnordost
https://www.dropbox.com/s/gb06kotnkyfp80d/streetcomplete.mp4?dl=0 - actually you don't have to solve quest - simply leave it's view. As you can see I start from one position (Urrutia street), enter quest view and then after leaving quest view I'm a couple of blocks down/north (train station). It kinda feels that it's related with long objects that forces change of underlying map view (to fit it completely). As for un-sticky-gpg -- I should say "non-sticky" - i.e. I can freely move around the map.

EDIT:
more or less location https://www.openstreetmap.org/relation/1766981#map=17/-38.23239/-72.33389 - maybe it will help with reproducing the issue.

That is definitely a bug, but I haven't been able to reproduce it so far.

It's quite reproducible for me - I could provide you with logcat if that helps.

Steps:

  1. Move map so that quest is in top right or top left corner.
  2. Tap quest.
  3. Wait for quest to show.
  4. Tap back in navigation bar (or equivalent gesture).
  5. Observe that quest icon is no longer in top corner.

Oh right, I was wrong: Only the zoom is reset to the previous zoom, but not the position. The position is not set to something different at all. In your video it zooms to that position because that is the center of the view.

Question is: Would it be an improvement if not only the zoom is reset but also the position? I am not so sure about that.

Would it be an improvement if not only the zoom is reset but also the position?

IMHO, yes. :smile:

Question is: Would it be an improvement if not only the zoom is reset but also the position? I am not so sure about that.

It would be huuuuge improvement (and this is the gist of this issue). IMHO, current behaviour is just a bug - I can't find any useful case for current behaviour (zoom out and then return zoom level but to completely different location).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RubenKelevra picture RubenKelevra  路  3Comments

rugk picture rugk  路  3Comments

ecksun picture ecksun  路  3Comments

MattWhilden picture MattWhilden  路  3Comments

westnordost picture westnordost  路  3Comments