Skip to content
This repository has been 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
freewu32 opened this issue May 16, 2017 · 3 comments
Closed

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

freewu32 opened this issue May 16, 2017 · 3 comments
Assignees
Labels
Android Mapbox Maps SDK for Android

Comments

@freewu32
Copy link

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

@freewu32
Copy link
Author

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

@fabian-guerra fabian-guerra added the Android Mapbox Maps SDK for Android label May 16, 2017
@tobrun tobrun added this to the android-v5.1.0 milestone May 19, 2017
@tobrun tobrun self-assigned this May 19, 2017
@tobrun
Copy link
Member

tobrun commented May 19, 2017

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.

@tobrun
Copy link
Member

tobrun commented May 19, 2017

#9050 merged to release branch. Closing.

@tobrun tobrun closed this as completed May 19, 2017
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

3 participants