Skip to content

Commit

Permalink
Merge pull request #4275 from osmandapp/fix_left_hand_driving
Browse files Browse the repository at this point in the history
Fix left hand driving routing
  • Loading branch information
alex-osm authored Jan 9, 2025
2 parents 08c0cbc + 4f10de0 commit 55d6d2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Controllers/Map/OAMapViewTrackingUtilities.mm
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ - (void) onMapModeChanged
if (!_mapViewController || ![_mapViewController isViewLoaded])
return;

[self resetDrivingRegionUpdate];

_startChangingMapModeTime = CACurrentMediaTime();

CLLocation* newLocation = _app.locationServices.lastKnownLocation;
Expand Down
1 change: 1 addition & 0 deletions Sources/Router/OARoutingHelper.mm
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ - (void) setFinalAndCurrentLocation:(CLLocation *)finalLocation intermediatePoin
{
OARouteCalculationResult *previousRoute = _route;
[self clearCurrentRoute:finalLocation newIntermediatePoints:intermediatePoints];
[OARoutingHelperUtils updateDrivingRegionIfNeeded:currentLocation force:NO];
// to update route
[self setCurrentLocation:currentLocation returnUpdatedLocation:NO previousRoute:previousRoute targetPointsChanged:YES];
}
Expand Down

0 comments on commit 55d6d2f

Please sign in to comment.