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

Option to provide custom values for location camera transition #14606

Merged
merged 1 commit into from
May 9, 2019

Conversation

LukasPaczos
Copy link
Contributor

Closes #14539.

This PR adds an option to provide custom transition duration, zoom, bearing and tilt values for the location tracking transition animation.
ezgif com-video-to-gif (34)

@LukasPaczos LukasPaczos added the Android Mapbox Maps SDK for Android label May 7, 2019
@LukasPaczos LukasPaczos added this to the release-nectar milestone May 7, 2019
@LukasPaczos LukasPaczos requested a review from tobrun May 7, 2019 16:04
Copy link
Member

@tobrun tobrun left a comment

Choose a reason for hiding this comment

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

Awesome stuff @LukasPaczos

}

void setCameraMode(@CameraMode.Mode final int cameraMode, @Nullable Location lastLocation,
@Nullable OnLocationCameraTransitionListener internalTransitionListener) {
@Nullable OnLocationCameraTransitionListener internalTransitionListener,
Copy link
Member

Choose a reason for hiding this comment

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

listeners should ideally be set as last parameter to improve consumption from kotlin code

Copy link
Member

Choose a reason for hiding this comment

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

context in this user report: #12010

Copy link
Contributor Author

Choose a reason for hiding this comment

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

great catch!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I've already pushed the changes but since OnLocationCameraTransitionListener is not a SAM interface it doesn't actually matter.

Copy link
Member

Choose a reason for hiding this comment

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

lol, in any case it's a bit more readable 🙃

@LukasPaczos
Copy link
Contributor Author

/cc @mapbox/navigation-android

@LukasPaczos LukasPaczos force-pushed the lp-custom-tracking-transition-14539 branch 2 times, most recently from 81954a2 to 48b07bf Compare May 9, 2019 13:20
@LukasPaczos LukasPaczos force-pushed the lp-custom-tracking-transition-14539 branch from 48b07bf to eb78633 Compare May 9, 2019 13:20
@LukasPaczos LukasPaczos merged commit 6fa1d35 into master May 9, 2019
@LukasPaczos LukasPaczos deleted the lp-custom-tracking-transition-14539 branch May 9, 2019 17:43
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.

Custom tracking transition animation
2 participants