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

Reseting tracking mode with camera position change #9105

Closed

Description

@LukasPaczos

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

Activity

  1. added
    Android
    on May 25, 2017
  2. tobrun commented on May 29, 2017

    @tobrun
    Member

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

  3. Guardiola31337 commented on May 31, 2017

    @Guardiola31337
    Contributor

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

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

  4. LukasPaczos commented on May 31, 2017

    @LukasPaczos
    ContributorAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Android

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions