Coder Social home page Coder Social logo

Comments (7)

vshcherb avatar vshcherb commented on July 18, 2024 1

It's documented so widget displays distance from touch

from osmand.

mnalis avatar mnalis commented on July 18, 2024 1

It's documented so widget displays distance from touch

Um, where is it documented? I'm looking at https://osmand.net/docs/user/widgets/markers/ and it says:

The Map markers bar (Android) widget / Distance indication - Top bar (iOS) widget displays:

  • Distance from your current location to the selected point indicated by the Marker on the map (Units of length can be choosed in the Profile settings).

As far as I can see, it has no wording to indicate that the distance and direction displayed will change into something else if you touch the screen to pan the map (and then change again when you stop touching).
I've created PR osmandapp/web#427 in attempt to clarify that.

If that is indeed wanted behaviour as indicated, I'd still suggest that OsmAnd:

  • indicates that in the widget itself (e.g. by adding from map center after the displayed distance in the widget while map is panning) to reduce confusion, and
  • actually make the widget follow the map center while the map is panning (currently, it seems to display distance only to the initial point of touch which initiated panning, and does not update even while panning/zooming changes both distance and direction to the Marker position - which only adds to the confusion)

from osmand.

EugeneZmeuk avatar EugeneZmeuk commented on July 18, 2024 1

@mnalis
yes, you are right, there are two scenarios for showing distance without the Location.

  • with touching map
  • without touching

I re-wrote this info for Docs.

from osmand.

sonora avatar sonora commented on July 18, 2024

Yes, looks like while you are in a panning gesture, always about 1 sec after you start the gesture and until you take the finger off the map again, does the widget show the distance from the map center. Then reverts to the distance from the device location.Not sure if it's designed like that on purpose.

Also: Is it intentional that the widget does not appear immediately after setting a map marker, but only after subsequently tapping the "Back to location" button?

from osmand.

mnalis avatar mnalis commented on July 18, 2024

Not sure if it's designed like that on purpose.

I certainly hope that was not by design 😅 . If it was indeed intended that different data alternates while panning, some differentiation text should've absolutely been added to the text, e.g. 60m from GNSS location / 234km from map center, but even with such necessary clarifications it would be very strange UI decision IMHO.

from osmand.

EugeneZmeuk avatar EugeneZmeuk commented on July 18, 2024

@mnalis I corrected Docs articles with actual info. (before I merged your commits).
When the location is off, the widget shows a distance from the center map point to the marker.

from osmand.

mnalis avatar mnalis commented on July 18, 2024

thanks for merging

When the location is off, the widget shows a distance from the center map point to the marker.

@EugeneZmeuk I though so initially too, but my testing seems to show this is not the case.

See this example video - center of the map is about the same in all cases, but:

  • if I press on the upper part of the screen and pan a little, it says about 2km
  • if I press on lower part of the screen and pan a little, it says only about 800m.
  • if I press on the upper part of the screen again and pan a little, it says about 2km again

So it seems always to be dependent exactly on which part of the screen I touched, and not on a center of the map.

small_Screen_Recording_20240621_003849_OsmAnd.mp4

from osmand.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.