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

Location Sync Issue Between Mapbox and Custom Location Recording #843

Open
Mojo1917 opened this issue Jan 22, 2025 · 2 comments
Open

Location Sync Issue Between Mapbox and Custom Location Recording #843

Mojo1917 opened this issue Jan 22, 2025 · 2 comments

Comments

@Mojo1917
Copy link

Hello everyone,

I am using the Mapbox Flutter package to develop an app where users can record their location. However, I have encountered a synchronization issue between Mapbox and the package I use for location recording.

The problem is that the location displayed by Mapbox is often a few meters behind the recorded location when the user is driving or walking. This creates an awkward experience because the recorded track is displayed correctly, but the location puck lags behind, causing confusion.

I’ve tried providing the recorded location directly to the map but haven’t found a working solution.

Has anyone else faced a similar issue or found a way to resolve this? Any guidance or suggestions would be greatly appreciated.

Thank you!

@evil159
Copy link
Contributor

evil159 commented Jan 27, 2025

Hi @Mojo1917, currently location indicator position is interpolated on platform side, this is not configurable and there is currently not way to subscribe to interpolated location updates.
Since you are already receiving and propagating location updates to the map to display the recorded track, I think a way forward for you would be to use LocationIndicatorLayer to display location indicator, this way you should be able to synchronize the position of the location indicator and the recorded track.

@Mojo1917
Copy link
Author

Thank you so much for you comment @evil159! I will take a closer look at that.

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

2 participants