Authored by Justin R. Miller

update delegate on heading change, just like MapKit does

@@ -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