-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Smooth animation in user tracking mode #3629
Comments
The first iteration landed with #4695 The following items should be resolved to close this issue:
|
@1ec5 thank you for the always helpfull comments 🙇 |
I have been looking into adding an own supplied UnitBezier as: animationOptions.easing.emplace(mbgl::util::UnitBezier(0, 0, 1, 1)); Which matches the Linear interpolator found in the Apple docs. After adding this it seems the easing interpolation is still there. You can see a clear difference in acceleration at start and deceleration at end. See this clip here. @1ec5 any hints on what I'm doing wrong here? |
You should just be able to assign the |
I'm going to PR the smooth animation for tracking mode separately from the non-tracking. In code these are completely different things and I want to include 49aae67 in the next SNAPSHOT. |
With above in place, I'm going to cleanup the |
…ser location, introducing a new easeTo method with a linear interpolator
Currently on Android the UserLocationView animates from one location update to another.
You can clearly see the different location updates coming in and the it doesn't seem that the user is traveling at a constant speed. To properly support the idea of implementing navigation, we should streamline location updates/animation.
There are two ways to improve this user experience:
On iOS they have chosen to implement Entity interpolation which means that the user dot is actually one step behind the actual location, it is always trying to catch up.
@1ec5 @bleege @zugaldia
The text was updated successfully, but these errors were encountered: