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

Camera bearing - wrong direction #6897

Closed
tomlocks opened this issue Nov 3, 2016 · 3 comments
Closed

Camera bearing - wrong direction #6897

tomlocks opened this issue Nov 3, 2016 · 3 comments
Assignees
Labels
Android Mapbox Maps SDK for Android

Comments

@tomlocks
Copy link
Contributor

tomlocks commented Nov 3, 2016

Platform: Nexus 5 Android 6.0.1
Mapbox SDK version: 4.2.0beta4

Steps to trigger behavior

  1. Update camera position using this code:
final CameraPosition.Builder builder = new CameraPosition.Builder();
 builder.target(new LatLng(52.39115,16.96389)).bearing(90).zoom(12);
 final CameraUpdate cameraUpdate = CameraUpdateFactory.newCameraPosition(builder.build());
 mapboxMap.animateCamera(cameraUpdate);

Expected behavior

Map should face east.

Actual behavior

Map is facing west.

Subtracting 360 from bearing resolves this issue, but I think that it isn't correct solution.

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Nov 3, 2016
@tobrun
Copy link
Member

tobrun commented Nov 4, 2016

Thanks for the report, able to reproduce, fixing for the 4.2.0 release.

@tobrun
Copy link
Member

tobrun commented Nov 4, 2016

Will be resolved when #6917 is merged in release branch, thank you for reaching out closing.

@tobrun tobrun closed this as completed Nov 4, 2016
@tobrun tobrun added this to the android-v4.2.0 milestone Nov 4, 2016
@tobrun tobrun self-assigned this Nov 4, 2016
@johannesanderwald
Copy link

Hello,
When will be there a new beta with this issue fixed?
Best regards

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