[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:
committed by
Minh Nguyễn
parent
c062494536
commit
556690fae8
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user