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

Commit

Permalink
[macos] Removed redundant sign flip
Browse files Browse the repository at this point in the history
Fixed an issue where the mbgl::CameraOptions’ heading was misinterpreted as going counterclockwise instead of clockwise.
  • Loading branch information
1ec5 committed Oct 30, 2018
1 parent 3aa995b commit 89cf6c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/macos/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ - (void)flyToCamera:(MGLMapCamera *)camera withDuration:(NSTimeInterval)duration
camera.centerCoordinate.latitude,
self.frame.size);
if (camera.heading >= 0) {
options.angle = -camera.heading;
options.angle = camera.heading;
}
if (camera.pitch >= 0) {
options.pitch = camera.pitch;
Expand Down

0 comments on commit 89cf6c6

Please sign in to comment.