update delegate on heading change, just like MapKit does
Showing
1 changed file
with
3 additions
and
0 deletions
@@ -2184,6 +2184,9 @@ | @@ -2184,6 +2184,9 @@ | ||
2184 | 2184 | ||
2185 | userLocation.heading = newHeading; | 2185 | userLocation.heading = newHeading; |
2186 | 2186 | ||
2187 | + if (_delegateHasDidUpdateUserLocation) | ||
2188 | + [delegate mapView:self didUpdateUserLocation:userLocation]; | ||
2189 | + | ||
2187 | if (newHeading.trueHeading != 0 && userTrackingMode == RMUserTrackingModeFollowWithHeading) | 2190 | if (newHeading.trueHeading != 0 && userTrackingMode == RMUserTrackingModeFollowWithHeading) |
2188 | { | 2191 | { |
2189 | [UIView animateWithDuration:1.0 | 2192 | [UIView animateWithDuration:1.0 |
-
Please register or login to post a comment