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.

Zoom-in and zoom-out do not invoke any onCameraXXX callbacks #10022

Closed

Description

@akoprow

Platform: Android
Mapbox SDK version: 5.1.3

Steps to trigger behavior

  1. Double-click with a mouse to trigger zoom-in on the map.

Expected behavior

Some onCameraXXX callback should be invoked.

Actual behavior

As far as I can see the only callback being called is OnCameraChangeListener. How is one supposed to handle those events given that aforementioned callback is deprecated?

Activity

  1. added
    Android
    on Sep 19, 2017
  2. Guardiola31337 commented on Sep 19, 2017

    @Guardiola31337
    Contributor

    Hey 👋 @akoprow thanks for reaching out and report your question.

    With 5.1.0 release, we introduced a new system around camera notifications 👀 Camera Change Listener v2.0 and Camera start, ongoing, and end events notifications tickets.

    There is an example in the test app (CameraPositionActivity) showing how to use the new CameraChangeListener API that you can check.

    Going ahead and close this as the question is answered. Feel free to open new tickets if you have any other questions 😉

  3. akoprow commented on Sep 19, 2017

    @akoprow
    Author

    Let me clarify. I'm aware of the new API and am using it. I created a simple app logging to Logcat whenever any of the camera callbacks fires. Everything works nicely except when I add zoom-in/out icons to the map:

    mMap.getUiSettings().setZoomControlsEnabled(true);

    Zooming with double clicking the map triggers a series of callback and eventually OnCameraIdle when the camera move is finished (this is the event I'm interested in and this is the behavior I'd expect).

    However, clicking the zoom-in/out buttons only triggers a series of OnCameraMoveStarted (never triggering OnCameraIdle).

    I doubt this is "Working as intended"?

  4. reopened this on Oct 18, 2017
  5. tobrun commented on Oct 18, 2017

    @tobrun
    Member

    Thank you for the report @akoprow, fix for this in #10221.

  6. added this to the android-v5.2.0 milestone on Oct 18, 2017
  7. lilykaiser commented on Nov 2, 2017

    @lilykaiser

    Can this be closed?

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions