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

Commit

Permalink
[android] fix compass direction (Transform::getCameraOptions returns …
Browse files Browse the repository at this point in the history
…counterclockwise angle after transform.invalidateCameraPosition() which needs to be transformed to a clockwise bearing) (#9632)
  • Loading branch information
Guardiola31337 authored Jul 27, 2017
1 parent 39face8 commit 175e7e2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ void update(@NonNull CameraPosition cameraPosition) {
return;
}

compassView.update(cameraPosition.bearing);
double clockwiseBearing = -cameraPosition.bearing;
compassView.update(clockwiseBearing);
}

/**
Expand Down

0 comments on commit 175e7e2

Please sign in to comment.