osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.68k stars 1.02k forks source link

Quick action: zoom to my location at specific zoom level #20460

Open pfbreton-perso opened 3 months ago

pfbreton-perso commented 3 months ago

Describe the idea (required)

When pressing on the button, the zoom level is always set to 15. I would like to set the zoom level to 13 for the following reasons:

Basically, the jump to level 15 isn't ideal for me and I would like to be able to change this value to a different default.

Tell us about the expected behaviour (required)

I suggest to add a field in the Configure Profile | Map during navigation page entitled set to the current default value of 15. This field could be customized from a value of 8 to 19 or something along those lines.

Tell us about alternatives you've considered (required)

I did changed the Map magnifier value to 75% but the problem with this is that it still defaults to a zoom level of 15, which assumes that we have precached the tiles up to a level 15 - and this is lot of data to download. 13 and 14 are a good balance between details and size in my own application.

Context (optional)

No response

vshcherb commented 3 months ago

It would make sense to create new Quick Action, center my location and zoom which makes sense.

ossterv commented 1 month ago

I do suffer this hardcoded zoom level. This is the only thing which annoys a lot. Personally I use Browsing mode only and with lower zoom levels than 15 (e.g. 12 or 13). When travelling, I just watch the map and see where I am. Whenever I need to e.g. pan map, I swipe the screen, no problem. But when I need to return and center my map so it follows again my location, after pressing blue button, it will zoom in (along with centering). How annoying is that. I always need to zoom out to previous zoom level where I was. It is also safety risk to click more that expected while driving (e.g. motocycle). No other available map application does this kind of behaviour.

Should you get rid of this hardcoded zoom level 15 value, and add profile specific user option where user can specify zoom-in level if user wishes so? The default there could be whatever you want, but please allow users to specify or disable that by profile, thanks.

The hard coded value can be found e.g. from here backToLocationImpl https://github.com/osmandapp/OsmAnd/blob/dbe4ccb1cc490573d2b905d8aa2c81e11a2b58eb/OsmAnd/src/net/osmand/plus/base/MapViewTrackingUtilities.java#L450

pfbreton-perso commented 1 month ago

Your description of how you use your navigation while travelling corresponds exactly to how i use it.

I realize that my initial suggestion could be made more elegant by simply respecting the current zoom level when centering.

this way there’s no additional user interface element to add and no profile addition to be made.

that would make the behaviour consistent with gaia or gurumaps too

ossterv commented 1 month ago

I noticed that it is a zoom-in function, not a zoom-out. For example, if you are at zoom level 16 or higher, pressing the blue center button will not zoom out. I would assume then that a quick fix is to change zoomlevel from 15 e.g. to 1 on the line I mentioned above.