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

Reseting tracking mode with camera position change #9105

Closed
LukasPaczos opened this issue May 25, 2017 · 3 comments
Closed

Reseting tracking mode with camera position change #9105

LukasPaczos opened this issue May 25, 2017 · 3 comments
Labels
Android Mapbox Maps SDK for Android

Comments

@LukasPaczos
Copy link
Contributor

Platform: Android
Mapbox SDK version: 5.1.0.beta.2

Action

Changing zoom using:
CameraPosition cameraPosition = new CameraPosition.Builder(map.getCameraPosition()).zoom(newZoom).build(); map.easeCamera(CameraUpdateFactory.newCameraPosition(cameraPosition), duration, true, null);
or
map.animateCamera(CameraUpdateFactory.zoomTo(newZoom), duration);

Expected behavior

Change zoom and keep tracking mode.

Actual behavior

Sometime tracking mode resets back from TRACKING_FOLLOW to TRACKING_NONE probably due to flag TrackingSettings#isResetTrackingWithCameraPositionChange being set to true when checking condition in TrackingSettings#resetTrackingModesIfRequired(CameraPosition cameraPosition).

Might be connected with #8738

@fabian-guerra fabian-guerra added the Android Mapbox Maps SDK for Android label May 25, 2017
@tobrun
Copy link
Member

tobrun commented May 29, 2017

Source of this issue is related to posting animations to the end of message queue in #7000

@Guardiola31337
Copy link
Contributor

Hey @LukasPaczos thanks for reaching out and reporting your problem.

This should be fixed with #9133. Would you be able to retest it?

@LukasPaczos
Copy link
Contributor Author

@Guardiola31337 Hi, thanks for checking this out. I might have a moment later today to retest it.

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

No branches or pull requests

4 participants