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

Orientation indicator lags map rotation. #61

Open
michaelkirk opened this issue Jun 13, 2024 · 0 comments
Open

Orientation indicator lags map rotation. #61

michaelkirk opened this issue Jun 13, 2024 · 0 comments

Comments

@michaelkirk
Copy link
Collaborator

michaelkirk commented Jun 13, 2024

Steps to Trigger Behavior

  1. Start a navigation, which should initially lock the map camera to the users current heading.
  2. Rotate the map (easier to tell when you rotate quickly).

One way to induce a quick rotation is to head south and tap the "overview" button which will switch between the users heading and the northern orientation used by the "overview". (see recording below)

Link to Minimal Reproducible Example

I don't have an example, but as far as I can tell this should be reproducible in any MapboxNavigation.NavigationViewController. LMK if you have trouble reproducing and I can cook something up.

Expected Behavior

Heading indicator (the arrow on the puck) should always point the direction the user is heading.

That means when the user rotates the map with their fingers, the orientation indicator should compensate.

Actual Behavior

The orientation indicator eventually compensates, but there is some noticeable lag (1-2s)

Screenshots (if applicable)

broken-orientation-animation.mov.mp4

Note how the user is moving in the same direction, but the re-orientation of the puck happens either before or after the camera moves, rather than in sync with it.

Version(s) affected

  • Platform: iOS
  • OS version: iOS 16.4
  • Device type: iPhone 8+
  • Emulator/ Simulator: yes
  • Development OS: macos 14.5 (23F79)
  • maplibre-navigation-ios Version: HEAD eaee92b
  • MapLibre GL version [e.g. 6.3.0]: 6.4.0

Additional context

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

No branches or pull requests

1 participant