be more exact about user tracking centering
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -2731,7 +2731,7 @@ | @@ -2731,7 +2731,7 @@ | ||
2731 | CGPoint mapCenterPoint = [self convertPoint:self.center fromView:self.superview]; | 2731 | CGPoint mapCenterPoint = [self convertPoint:self.center fromView:self.superview]; |
2732 | CGPoint userLocationPoint = [self mapPositionForAnnotation:userLocation]; | 2732 | CGPoint userLocationPoint = [self mapPositionForAnnotation:userLocation]; |
2733 | 2733 | ||
2734 | - if (fabsf(userLocationPoint.x - mapCenterPoint.x) > 2 || fabsf(userLocationPoint.y - mapCenterPoint.y > 2)) | 2734 | + if (fabsf(userLocationPoint.x - mapCenterPoint.x) || fabsf(userLocationPoint.y - mapCenterPoint.y)) |
2735 | { | 2735 | { |
2736 | if (round(_zoom) >= 10) | 2736 | if (round(_zoom) >= 10) |
2737 | { | 2737 | { |
-
Please register or login to post a comment