EVMap icon indicating copy to clipboard operation
EVMap copied to clipboard

Default map location

Open alensiljak opened this issue 2 years ago • 4 comments

I would like to be able to set the starting map location instead of having to zoom in from space to a location I normally look at. A convenient option might be a menu item "save current view as default" or something along those lines.

alensiljak avatar Jul 06 '22 17:07 alensiljak

By default the app should zoom to your current location. Are you talking about the behavior with location permissions turned off?

johan12345 avatar Jul 06 '22 17:07 johan12345

Most likely. I keep the location turned off since it is not possible to have only triangulation and having GPS on wastes a lot of battery.

alensiljak avatar Jul 06 '22 17:07 alensiljak

Only triangulation is also possible, but only starting with Android 12 where you can choose this during the permission request.

So yeah, it is a valid (albeit less common) use case. I guess one would want an option in settings to choose between

  • Default (~Europe)
  • Zoom to current location (not available if location permission disabled)
  • Custom view (which then allows you to choose on the map)

johan12345 avatar Jul 06 '22 18:07 johan12345

Only triangulation is also possible, but only starting with Android 12 where you can choose this during the permission request.

No, I mean it is not possible on my phone. Sorry for not being clear.

Otherwise, your suggestion seems fine and would cover my use case. You can guess how annoying it is to manually zoom every time.

I'll try using the location in the meantime. However, I rarely look at my location. I usually inspect the destination location for any convenient chargers.

So, having a wider region around my city would be my preference, for example.

Thanks!

alensiljak avatar Jul 06 '22 18:07 alensiljak

What about a default view that displays the area of all your favorite locations - if you have defined some. Else default to all charging locations (eg. Europe). First choice: Zoom to current location (not available if location permission disabled)

MartinH-open avatar Jun 04 '23 18:06 MartinH-open

I just checked what Google Maps does when there is no current location available (or permission disabled): It simply keeps the position you viewed when the app was open the last time. I guess this is a pretty convenient solution that is easy to implement and doesn't require an extra menu/settings option.

Using the favorites might also be useful, but this depends on what you use favorites for (e.g. if you have some chargers as favorites around your hometown, but also some at a far away vacation destination, having a default view that shows all favorites is not that much better than showing all of Europe).

johan12345 avatar Jun 08 '23 20:06 johan12345

With 0d11e45 I implemented the behavior explained above (keep the last viewed location if location data are not available). With 71c36fb I adjusted it again, so that it will also keep the last viewed location if location data are available, but the user wasn't actually looking at their location the last time they used the app. This is now really equivalent to how e.g. Google Maps does it, and should in my opinion be good enough for most use-cases.

johan12345 avatar Sep 14 '23 18:09 johan12345