From 89cf6c6006292a0e7c55da855c5e00527f2e7b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Fri, 26 Oct 2018 16:37:01 -0700 Subject: [macos] Removed redundant sign flip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed an issue where the mbgl::CameraOptions’ heading was misinterpreted as going counterclockwise instead of clockwise. --- platform/macos/src/MGLMapView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm index 6fdc679789..9f9bb855d2 100644 --- a/platform/macos/src/MGLMapView.mm +++ b/platform/macos/src/MGLMapView.mm @@ -1221,7 +1221,7 @@ public: 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; -- cgit v1.2.1