diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index 3b86c7b98..64f8d0f69 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -1371,8 +1371,6 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration) self.scale = _mbglMap->getScale(); self.quickZoomStart = [quickZoom locationInView:quickZoom.view].y; - - self.userTrackingMode = MGLUserTrackingModeNone; } else if (quickZoom.state == UIGestureRecognizerStateChanged) { @@ -1772,7 +1770,10 @@ mbgl::LatLngBounds MGLLatLngBoundsFromCoordinateBounds(MGLCoordinateBounds coord { if ( ! animated && ! self.rotationAllowed) return; - self.userTrackingMode = MGLUserTrackingModeNone; + if (self.userTrackingMode == MGLUserTrackingModeFollowWithHeading) + { + self.userTrackingMode = MGLUserTrackingModeFollow; + } CGFloat duration = (animated ? MGLAnimationDuration : 0);