Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Conversation

danesfeder
Copy link
Contributor

No description provided.

@danesfeder danesfeder self-assigned this Feb 27, 2018
@@ -102,16 +92,18 @@ public void onAnimationUpdate(ValueAnimator valueAnimator) {
}

void cancelAllAnimations() {
cancelLocationAnimations();
cancelLatLngAnimation();
cancelCompassAnimations();
Copy link
Contributor

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);
Copy link
Contributor

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();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as for previousLatLngTarget.

@LukasPaczos
Copy link
Contributor

@danesfeder Added a couple of comments, maybe they'll help to pinpoint any issues you might have.

@danesfeder
Copy link
Contributor Author

Closing in favor of #349

@danesfeder danesfeder closed this Mar 7, 2018
@danesfeder danesfeder deleted the dan-bearing-animate branch March 28, 2018 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants