-
Notifications
You must be signed in to change notification settings - Fork 119
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
Bearing Animation #325
Bearing Animation #325
Conversation
@@ -102,16 +92,18 @@ public void onAnimationUpdate(ValueAnimator valueAnimator) { | |||
} | |||
|
|||
void cancelAllAnimations() { | |||
cancelLocationAnimations(); | |||
cancelLatLngAnimation(); | |||
cancelCompassAnimations(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cancelBearingAnimation()
not called.
locationLayerAnimator.feedNewLocation(lastLocation, location); | ||
LatLng previousLatLngTarget = new LatLng(lastLocation); | ||
LatLng latLngTarget = new LatLng(location); | ||
locationLayerAnimator.feedNewLatLng(previousLatLngTarget, latLngTarget); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't previousLatLngTarget
be taken from the current camera position, not from the last location?
LatLng latLngTarget = new LatLng(location); | ||
locationLayerAnimator.feedNewLatLng(previousLatLngTarget, latLngTarget); | ||
|
||
float previousGpsBearing = lastLocation.getBearing(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as for previousLatLngTarget
.
@danesfeder Added a couple of comments, maybe they'll help to pinpoint any issues you might have. |
Closing in favor of #349 |
No description provided.