[ios] No manual rotating in heading/course tracking mode

Manually rotating the map in heading or course tracking mode now kicks the user back into location tracking mode.
This commit is contained in:
Minh Nguyễn
2016-01-22 14:39:12 -08:00
committed by Minh Nguyễn
parent c062494536
commit 556690fae8

View File

@@ -1196,6 +1196,11 @@ std::chrono::steady_clock::duration MGLDurationInSeconds(float duration)
[self trackGestureEvent:MGLEventGestureRotateStart forRecognizer:rotate];
self.angle = MGLRadiansFromDegrees(_mbglMap->getBearing()) * -1;
if (self.userTrackingMode != MGLUserTrackingModeNone)
{
self.userTrackingMode = MGLUserTrackingModeFollow;
}
[self notifyGestureDidBegin];
}