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

Bug: Bearing is inverted with LatLngBounds Update #12549

Closed
JGerdes opened this issue Aug 5, 2018 · 1 comment
Closed

Bug: Bearing is inverted with LatLngBounds Update #12549

JGerdes opened this issue Aug 5, 2018 · 1 comment
Assignees
Labels
Android Mapbox Maps SDK for Android

Comments

@JGerdes
Copy link

JGerdes commented Aug 5, 2018

When animating the camera via CameraUpdateFactory.newLatLngBounds(), bearing gets mirrored on north/south axis.
When applying the same CameraUpdate from CameraUpdateFactory.newLatLngBounds() multiple times, the bearing keep swapping between two values:

original bearing bearing after re-applying update
orginal bearing bearing after second update

Can be reproduced with all map.animateCamera(), map.easeCamera() and map.MoveCamera().

Steps to reproduce

  1. Start map view with bearing set to 0 (north facing up)
  2. Apply CameraUpdate obtained with CameraUpdateFactory.LatLngBounds()
  3. Rotate map (changing it's bearing)
  4. Apply new (or same, doesn't matter) CameraUpdate obtained with CameraUpdateFactory.LatLngBounds()

Expected behavior

Animating to same bounds as before with either keeping current bearing or resetting it to 0 (latter one used to be the behavior)

Actual behavior

Bearing seems to be mirrored on north-south axis (before second update: 42.27285333486378, after second update: 317.7271466651362).

Configuration

Android versions: Tested and reproduced on Android 8.0 and 4.4.2
Device models: One Plus 3T (Android 8.0), Nexus 5 Emulator (Android 4.4.2)
Mapbox SDK versions: 6.3.0

This bug might be related to/was introduced with #11993

@LukasPaczos LukasPaczos added the Android Mapbox Maps SDK for Android label Aug 6, 2018
@tobrun
Copy link
Member

tobrun commented Aug 13, 2018

Thanks for the detailed report @JGerdes

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