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.

When the map is not toward the North,zoomIn or zoomOut map #9011

Closed

Description

@freewu32

Platform:Android
Mapbox SDK version:5.1.0-beta.1

Steps to trigger behavior

  1. Rotate map
  2. zoom In or Zoom Out map Twice

Expected behavior

Maps don't rotate

Actual behavior

1.The first map rotates to the opposite angle
2.The second map turns to normal

Activity

  1. freewu32 commented on May 16, 2017

    @freewu32
    Author

    zoom use api mapboxMap.animateCamera(CameraUpdateFactory.zoomOut()); and mapboxMap.animateCamera(CameraUpdateFactory.zoomIn());

  2. added
    Android
    on May 16, 2017
  3. added this to the android-v5.1.0 milestone on May 19, 2017
  4. self-assigned this
    on May 19, 2017
  5. tobrun commented on May 19, 2017

    @tobrun
    Member

    Thank you for the report. I pinpointed to the conversion we do from Android SDK Bearing to the core equivalent. We were making the angle negative before setting which isn't required. This resulted in setting an angle of 220 but was returned as 140.

  6. tobrun commented on May 19, 2017

    @tobrun
    Member

    #9050 merged to release branch. Closing.

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