Fixed follow-and-rotate on the first start

This commit is contained in:
r.kuznetsov 2016-12-05 13:48:45 +03:00 committed by Илья Гречухин
parent 3632ad0c4d
commit ef36502a74

View file

@ -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;