maplibre / maplibre-native

MapLibre Native - Interactive vector tile maps for iOS, Android and other platforms.
https://maplibre.org
BSD 2-Clause "Simplified" License
1k stars 295 forks source link

Android follow user behavior abnormal in simulator #2623

Open WuMianzhi opened 1 month ago

WuMianzhi commented 1 month ago

Describe the bug

due to the Q&A and i just noticed this pull, the behavior is normal in iOS. However, when trying a similar implementation in Android, the user location icon shakes excessively when simulating a route in the emulator. This appears to be a bug.

To Reproduce

  1. Initialize a map.
  2. Add navigation control.
  3. Simulate a route.

Expected behavior The user location should remain stable on the screen, as demonstrated in the video linked in this pull

Platform information (please complete the following information):

louwers commented 1 month ago

Could you add more detailed reproduction steps?

Did you look into? https://github.com/maplibre/maplibre-navigation-android

WuMianzhi commented 1 month ago

Could you add more detailed reproduction steps?

Did you look into? https://github.com/maplibre/maplibre-navigation-android

Sorry I didn't check the intro, I even don't use this package, just use navigation component in version 11.0.0, and it shows my location. Emmm, so it could be achieved that like a camera follow a moving object. Could you look at the discussion I mentioned in the issue describe

WuMianzhi commented 1 month ago

Could you add more detailed reproduction steps?

Did you look into? https://github.com/maplibre/maplibre-navigation-android

I ran the example from https://github.com/maplibre/maplibre-navigation-androidand found the same behavior I mentioned in discussion #2617. The icon doesn't stay centered stably and also shakes slightly. Its there any way to keep the icon in a certain position on screen.

https://github.com/user-attachments/assets/b9bfb81d-405c-4bdd-8f67-a4dcdaf34b27