@@ -290,9 +290,6 @@ typedef NS_ENUM(NSUInteger, MLNUserTrackingState) {
290290// / Initial zoom level when entering user tracking mode from a low zoom level.
291291const double MLNDefaultZoomLevelForUserTracking = 14.0 ;
292292
293- // / Tolerance for snapping to true north, measured in degrees in either direction.
294- const CLLocationDirection MLNToleranceForSnappingToNorth = 7 ;
295-
296293// / Distance threshold to stop the camera while animating.
297294const CLLocationDistance MLNDistanceThresholdForCameraPause = 500 ;
298295
@@ -883,6 +880,7 @@ - (void)commonInitWithOptions:(MLNMapOptions*)mlnMapoptions
883880 [self addGestureRecognizer: _rotate];
884881 _rotateEnabled = YES ;
885882 _rotationThresholdWhileZooming = 3 ;
883+ _toleranceForSnappingToNorth = 7 ;
886884
887885 _doubleTap = [[UITapGestureRecognizer alloc ] initWithTarget: self action: @selector (handleDoubleTapGesture: )];
888886 _doubleTap.numberOfTapsRequired = 2 ;
@@ -6839,8 +6837,8 @@ - (void)unrotateIfNeededForGesture
68396837 [self unrotateIfNeededAnimated: YES ];
68406838
68416839 // Snap to north.
6842- if ((self.direction < MLNToleranceForSnappingToNorth
6843- || self.direction > 360 - MLNToleranceForSnappingToNorth )
6840+ if ((self.direction < self. toleranceForSnappingToNorth
6841+ || self.direction > 360 - self. toleranceForSnappingToNorth )
68446842 && self.userTrackingMode != MLNUserTrackingModeFollowWithHeading
68456843 && self.userTrackingMode != MLNUserTrackingModeFollowWithCourse)
68466844 {
0 commit comments