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 has been 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);
}
The text was updated successfully, but these errors were encountered:
@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.
Platform:Android
Mapbox SDK version: Release Android v4.2.0
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?
The text was updated successfully, but these errors were encountered: