forked from organicmaps/organicmaps
Fixed follow-and-rotate on the first start
This commit is contained in:
parent
3632ad0c4d
commit
ef36502a74
1 changed files with 3 additions and 4 deletions
|
@ -37,12 +37,11 @@ void requestNotifications() { [MapsAppDelegate initPushNotificationsWithLaunchOp
|
|||
void zoomToCurrentPosition()
|
||||
{
|
||||
auto & f = GetFramework();
|
||||
f.SwitchMyPositionNextMode();
|
||||
CLLocation * lastLocation = [MWMLocationManager lastLocation];
|
||||
if (!lastLocation)
|
||||
return;
|
||||
int const zoom = 13;
|
||||
f.SetViewportCenter(lastLocation.mercator, zoom);
|
||||
f.SwitchMyPositionNextMode();
|
||||
else
|
||||
f.SetViewportCenter(lastLocation.mercator, 13 /* zoom */);
|
||||
}
|
||||
|
||||
NSInteger constexpr kRequestLocationPage = 2;
|
||||
|
|
Loading…
Add table
Reference in a new issue