You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Expected behavior
On tracking mode follow, when user clicks on zoom buttons, the tracking should not be lost.
Actual behavior
User loose the tracking mode (follow) on zoom in or zoom out.
Instead of calling mapView.resetTrackingModesIfRequired(cameraPosition) in animateCamera runnable callback, should you not check if resetting tracking mode is required like in easeCamera method?
if (resetTrackingMode) {
mapView.resetTrackingModesIfRequired(cameraPosition);
}
Reacted by Mohamed Nazim, MickzeKick and Sylvain HOCQ
@13kz are these buttons implemented by you or are we talking about the on screen buttons shown by the SDK?
Instead of calling mapView.resetTrackingModesIfRequired(cameraPosition) in animateCamera runnable callback, should you not check if resetting tracking mode is required like in easeCamera method?
I think this is a viable solution. The parameter exposed on easeCamera was added to allow for more dynamic animations (eg. navigation mode) but I'm also thinking about other solutions as setting a flag that results in not stopping tracking mode except for setTrackingMode.
Thanks @tobrun for the feedback. These buttons are implemented by myself. Using animateCamera from MapboxMap with the camera update and MapboxMap cancelable callback as parameters.
Adding a flag to avoid resetting tracking seems like a good idea.
Activity
tobrun commentedon Jan 26, 2017
@13kz are these buttons implemented by you or are we talking about the on screen buttons shown by the SDK?
I think this is a viable solution. The parameter exposed on easeCamera was added to allow for more dynamic animations (eg. navigation mode) but I'm also thinking about other solutions as setting a flag that results in not stopping tracking mode except for
setTrackingMode.13kz commentedon Jan 26, 2017
Thanks @tobrun for the feedback. These buttons are implemented by myself. Using animateCamera from MapboxMap with the camera update and MapboxMap cancelable callback as parameters.
Adding a flag to avoid resetting tracking seems like a good idea.
tobrun commentedon Jan 26, 2017
Picking this up now as this changes public API for the 5.0.0 release.
PR in #7871.