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
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
AndroidMapbox Maps SDK for AndroidGL JS parityFor feature parity with Mapbox GL JSfeaturenavigationFor the Mapbox Navigation SDK for Android or iOS or navigation use cases in general
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:
Entity interpolation
Dead reckoning
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.
This is going to be a very useful thing to have. @tobrun do you want to run at this after the dust settles a bit more after MapboxMap was introduced in #3145.
The following items should be resolved to close this issue:
While in follow location mode, we are using the the easeTo animate the map under the user location view. The easeTo method uses an easing interpolator and this makes the animation a bit jumpy. Having a linear interpolator variant would resolve this.
While in non follow location mode. The user location view is animated with the Android animator framework. The animator framework is time based which makes an animation to have a start and end state. This currently results in a very jumpy animation at high zoom levels, we should probably look in alternative ways of doing this outside the animator framework or write a custom animator from scratch.
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.
You should just be able to assign the UnitBezier to that field. But I’m not sure why it isn’t working for you regardless. That recording makes it look like the custom easing is being ignored.
Revisiting this and this time around I was able to remove interpolation. You can see this in action here. This video was taken on a high zoomlevel were easing used to be very visible.
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.
AndroidMapbox Maps SDK for AndroidGL JS parityFor feature parity with Mapbox GL JSfeaturenavigationFor the Mapbox Navigation SDK for Android or iOS or navigation use cases in general
Activity
1ec5 commentedon Jan 20, 2016
#3589 and #1582
bleege commentedon Feb 8, 2016
This is going to be a very useful thing to have. @tobrun do you want to run at this after the dust settles a bit more after MapboxMap was introduced in #3145.
tobrun commentedon Apr 25, 2016
The first iteration landed with #4695
The following items should be resolved to close this issue:
1ec5 commentedon Apr 25, 2016
You’ll want to set
easingoneaseTo()’s optionalAnimationOptionsparameter. See #3589 for more details.tobrun commentedon Apr 26, 2016
@1ec5 thank you for the always helpfull comments 🙇
tobrun commentedon Apr 26, 2016
I have been looking into adding an own supplied UnitBezier as:
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?
1ec5 commentedon Apr 26, 2016
You should just be able to assign the
UnitBezierto that field. But I’m not sure why it isn’t working for you regardless. That recording makes it look like the custom easing is being ignored.tobrun commentedon May 26, 2016
Revisiting this and this time around I was able to remove interpolation. You can see this in action here. This video was taken on a high zoomlevel were easing used to be very visible.
FWIW a video at a lower zoomlevel.
tobrun commentedon May 26, 2016
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.
tobrun commentedon May 26, 2016
I was able to get the non-tracking to work as well:
tobrun commentedon May 26, 2016
With above in place, I'm going to cleanup the
MyLocationViewclass a bit and PR it.