mapbox-maps-flutter icon indicating copy to clipboard operation
mapbox-maps-flutter copied to clipboard

Location Sync Issue Between Mapbox and Custom Location Recording

Open Mojo1917 opened this issue 10 months ago • 2 comments

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!

Mojo1917 avatar Jan 22 '25 22:01 Mojo1917

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.

evil159 avatar Jan 27 '25 11:01 evil159

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

Mojo1917 avatar Jan 29 '25 20:01 Mojo1917