forked from organicmaps/organicmaps
[ios] Fixed location state after welcome screen.
This commit is contained in:
parent
4b1c2b8d91
commit
e840a3fa6e
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue