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

Position Icon Orientation does not follow direction of movement if route is active #21428

Open
daniel-callejas-sevilla opened this issue Nov 24, 2024 · 2 comments
Assignees
Milestone

Comments

@daniel-callejas-sevilla
Copy link

daniel-callejas-sevilla commented Nov 24, 2024

Description

I expect the Position Icon arrow to point in the direction of movement, but when OsmAnd is set to follow a .gpx route, the Position Icon arrow gets confused and points towards the expected route, instead of the current position.

This is perhaps related to, but not the same as, #20858 and #21067. In my case the Position Icon is not stuck, it's just drunk. And the screen is on all the time.

Screen is on all the time, phone is charging.

Steps to reproduce

  • Define a random route by tapping on points on the map.
  • Enable trip recording, so that my actual position appears drawn on the map.
  • OsmAnd calculates the itinerary from my position to the start of route.
  • Start driving somewhere else. OsmAnd keeps rerouting me to the start of route. During rerouting, Position Icon arrow has a tendency to point to the next turn in the itinerary, instead of my actual direction of movement.

Actual result

Screen rotates correctly in the direction of movement, but Position Icon arrow points in a direction that does not match my movement. See video.

vid.mp4

Expected result

Position Icon arrow should at all times point in the direction of movement, regardless of any route or redirection.

Your Environment (required)

WARNING Crash-Logs MAY contain information you deem sensitive.
Review this CAREFULLY before posting your issue!

OsmAnd Version: 4.9.7
Android/iOS version: Android 15
Device model: Google Pixel 8a
Crash-Logs: no crash
@vshcherb vshcherb added this to the 4.9-android milestone Nov 24, 2024
@Norbert80
Copy link

I see the same issue. Let me know if attaching an additional screen recording helps.

@vshcherb
Copy link
Member

vshcherb commented Nov 26, 2024

To do

  • this code is not synced with location (bearing should be only approximated if location is on the line)

https://github.com/osmandapp/Osmand/blob/dc048ebf39df30af0b956e0f67bb9786daef7d39/OsmAnd/src/net/osmand/plus/routing/RoutingHelperUtils.java#L139

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

No branches or pull requests

4 participants