Skip to content

Bearing Animation#325

Closed
danesfeder wants to merge 1 commit intomap-location-animatorsfrom
dan-bearing-animate
Closed

Bearing Animation#325
danesfeder wants to merge 1 commit intomap-location-animatorsfrom
dan-bearing-animate

Conversation

@danesfeder
Copy link
Copy Markdown
Contributor

No description provided.

@danesfeder danesfeder self-assigned this Feb 27, 2018
void cancelAllAnimations() {
cancelLocationAnimations();
cancelLatLngAnimation();
cancelCompassAnimations();
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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

@danesfeder
Copy link
Copy Markdown
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.

3 participants