You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According Mapbox SwiftUI docs, i transform to a Signal my locations and override LocationProvider proxy.location?.override(locationProvider: mapLocationSignal())
Using basic puck 2D configuration Puck2D(bearing: .heading)
And Viewport as "Follow Puck" .followPuck(zoom: MapConstants.Settings.DEFAULT_ZOOM)
Puck refresh is not fluid at all, my locations are refreshed every 0.05 seconds and puck should be animated from previous location to new location thanks to interpolation.
ScreenRecording_02-18-2025.14-59-34_1.mov
Expected behavior
I expect my puck refresh to be as smooth as my old integration using UIKit system with UIViewRepresentable.
As seen in the video the puck is very smooth and satisfying even at maximal zoom.
ScreenRecording_02-18-2025.14-55-14_1.mov
Notes / preliminary analysis
i started thinking it was a viewport bug but removing it clearly show that there is a bug in disappearing / appearing puck logic.
I tried to log PuckRenderingData which are the interpolated values between 2 locations.
Heres a sample where "loc" are real locations and "puck" the interpolated one 📍loc latitude: 45.74135119298924 📍 Puck latitude: 45.74133870265051 📍 Puck latitude: 45.741338892579 📍 Puck latitude: 45.741339083179604 📍 loc latitude: 45.74135119298924
I can clearly see that interpolation is working but nothings pretty on screen.
Also test with AppleLocationProvider implementation with and without overriding, it's better but i can still see some latency in puck refresh.
Is there anything I'm forgetting ?
The text was updated successfully, but these errors were encountered:
Environment
Observed behavior and steps to reproduce
According Mapbox SwiftUI docs, i transform to a Signal my locations and override LocationProvider
proxy.location?.override(locationProvider: mapLocationSignal())
Using basic puck 2D configuration
Puck2D(bearing: .heading)
And Viewport as "Follow Puck"
.followPuck(zoom: MapConstants.Settings.DEFAULT_ZOOM)
Puck refresh is not fluid at all, my locations are refreshed every 0.05 seconds and puck should be animated from previous location to new location thanks to interpolation.
ScreenRecording_02-18-2025.14-59-34_1.mov
Expected behavior
I expect my puck refresh to be as smooth as my old integration using UIKit system with UIViewRepresentable.
As seen in the video the puck is very smooth and satisfying even at maximal zoom.
ScreenRecording_02-18-2025.14-55-14_1.mov
Notes / preliminary analysis
i started thinking it was a viewport bug but removing it clearly show that there is a bug in disappearing / appearing puck logic.
I tried to log PuckRenderingData which are the interpolated values between 2 locations.
Heres a sample where "loc" are real locations and "puck" the interpolated one
📍loc latitude: 45.74135119298924 📍 Puck latitude: 45.74133870265051 📍 Puck latitude: 45.741338892579 📍 Puck latitude: 45.741339083179604 📍 loc latitude: 45.74135119298924
I can clearly see that interpolation is working but nothings pretty on screen.
Also test with AppleLocationProvider implementation with and without overriding, it's better but i can still see some latency in puck refresh.
Is there anything I'm forgetting ?
The text was updated successfully, but these errors were encountered: