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

Fix sign flip in programmatic camera rotation #13213

Merged
merged 1 commit into from
Oct 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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