Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Use animated rotation value for MarkerView.setRotate - #6826

Merged
tobrun merged 1 commit into
release-android-v4.2.0from
6816-current-view-rotation
Oct 26, 2016
Merged

tobrun merged 1 commit into
release-android-v4.2.0from
6816-current-view-rotation

Conversation

@tobrun

@tobrun tobrun commented Oct 26, 2016

Copy link
Copy Markdown
Member

closes #6816, targeting release-android-v4.2.0. This PR cancels ongoing rotation animations and uses the current animated value instead of using the previous set rotation. If you would call MarkerView#setRotate while an animation was ongoing you would end up with a wrong rotation value.

Review @ivovandongen

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Oct 26, 2016
@tobrun tobrun added this to the android-v4.2.0 milestone Oct 26, 2016
@tobrun tobrun self-assigned this Oct 26, 2016
@mention-bot

Copy link
Copy Markdown

@tobrun, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ivovandongen, @BharathMG and @1ec5 to be potential reviewers.

…ted marker rotation difference

fix unit tests, input limiting is not handled by animateRotationBy instead of MarkerView.
Changed test to validate if method was called with correct value.
@tobrun
tobrun force-pushed the 6816-current-view-rotation branch from 00a17e9 to 4e4ca2d Compare October 26, 2016 11:22
@cammace

cammace commented Oct 26, 2016

Copy link
Copy Markdown
Contributor

Tested in Demo app, looks good now:

ezgif com-video-to-gif 5

@tobrun
tobrun merged commit c47e7b6 into release-android-v4.2.0 Oct 26, 2016
@tobrun
tobrun deleted the 6816-current-view-rotation branch October 26, 2016 14:17
tobrun added a commit that referenced this pull request Nov 7, 2016
…ted marker rotation difference (#6826)

fix unit tests, input limiting is not handled by animateRotationBy instead of MarkerView.
Changed test to validate if method was called with correct value.
tobrun added a commit that referenced this pull request Nov 9, 2016
* [android] - MyLocationView should facing above when location and compass bearing tracking are enabled. (#6829)

* [android] - use current animated rotation value for calculating animated marker rotation difference (#6826)

fix unit tests, input limiting is not handled by animateRotationBy instead of MarkerView.
Changed test to validate if method was called with correct value.

* [android] - only calculated offset margins for InfoWindow if View is found in current viewport, added example to the test app to test for regressions (#6877)

* upgraded okhttp dependency to latest version (#6880)

* Cancelable callback invocation (#6891)

* [android] - allow onCancel to be invoked from camera cancel callbacks

* set to null after finish

* [android]  - using bearing clockwise versus counterclockwise (#6917)

* [android]  - using bearing clockwise versus counterclockwise

* fixup brackets

* [android] - convert bearing values from core to Android SDK equivalent.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Android Mapbox Maps SDK for Android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants