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.

onCameraChange is not always called for the final position in the animation #7350

Closed

Description

@altafrm3d

Steps to trigger behavior

oncamerachange-behavingstrangely

onCameraChange i am calculating the Zoom level of Raster Tiles (using Math.round(cameraPosition.zoom)) and labeling it as shown

Expected behavior

onCameraChange is always called for the final position in the animation, so in my case, it should always update the label when the camera change is completed and the tiles are updated

Actual behavior

onCameraChange is not always called for the final position in the animation, but it misses a frequent number of times as shown in the gif

Platform: Android
Mapbox SDK version:

Activity

  1. tobrun commented on Dec 8, 2016

    @tobrun
    Member

    @altafrm3d thank you adding a gif to explain the issue, could you add the version where you are having this issue?

  2. altafrm3d commented on Dec 8, 2016

    @altafrm3d
    Author

    @tobrun I am not sure what you meant by the version, this is the last commit in the logs, maybe that is already enough for you

    commit 11229d7
    Author: Konstantin Käfer [email protected]
    Date: Wed Dec 7 12:37:52 2016 +0100

    [build] bump mason to update Android compile flags
    
  3. added
    Android
    on Dec 8, 2016
  4. self-assigned this
    on Dec 8, 2016
  5. added this to the android-v5.0.0 milestone on Dec 8, 2016
  6. tobrun commented on Dec 8, 2016

    @tobrun
    Member

    Thank for confirming that you are building from master. Note that you can also use stable versions that will not have this issue or build from the release branch release-android-v4.2.0. I changed the invalidation recently in #6532 to not refresh the camera position too much, it seems that gestures aren't always covert. I'm going to patch this up by hooking into setGestureInProgress(false) to determine if we need to notify OnCameraChangeListener for a change.

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

Metadata

Metadata

Assignees

Labels

Android

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions