forked from organicmaps/organicmaps
PR fixes
This commit is contained in:
parent
cb8b201c39
commit
d226c850e5
1 changed files with 3 additions and 2 deletions
|
@ -212,8 +212,9 @@ typedef NS_OPTIONS(NSUInteger, MapInfoView)
|
|||
{
|
||||
self.forceRoutingStateChange = ForceRoutingStateChangeStartFollowing;
|
||||
auto & f = GetFramework();
|
||||
f.SetRouter(f.GetBestRouter(ToMercator([MapsAppDelegate theApp].m_locationManager.lastLocation.coordinate), self.restoreRouteDestination));
|
||||
GetFramework().BuildRoute(ToMercator([MapsAppDelegate theApp].m_locationManager.lastLocation.coordinate), self.restoreRouteDestination, 0 /* timeoutSec */);
|
||||
m2::PointD const location = ToMercator([MapsAppDelegate theApp].m_locationManager.lastLocation.coordinate);
|
||||
f.SetRouter(f.GetBestRouter(location, self.restoreRouteDestination));
|
||||
GetFramework().BuildRoute(location, self.restoreRouteDestination, 0 /* timeoutSec */);
|
||||
}
|
||||
|
||||
#pragma mark - Map Navigation
|
||||
|
|
Loading…
Add table
Reference in a new issue