[ios] Fixed location state after welcome screen.

This commit is contained in:
Ilya Grechuhin 2016-03-22 12:28:10 +03:00 committed by Sergey Yershov
parent 4b1c2b8d91
commit e840a3fa6e

View file

@ -48,12 +48,14 @@ void requestNotifications()
void zoomToCurrentPosition()
{
auto & f = GetFramework();
f.SwitchMyPositionNextMode();
LocationManager * locationManager = MapsAppDelegate.theApp.locationManager;
if (![locationManager lastLocationIsValid])
return;
m2::PointD const centerPt = locationManager.lastLocation.mercator;
int const zoom = 13;
GetFramework().SetViewportCenter(centerPt, zoom);
f.SetViewportCenter(centerPt, zoom);
}
NSInteger constexpr kRequestLocationPage = 2;