forked from organicmaps/organicmaps-tmp
[android] closes #475
This commit is contained in:
parent
44f855abba
commit
f5fb6d08f0
1 changed files with 4 additions and 1 deletions
|
@ -62,6 +62,9 @@ void Framework::OnGpsUpdate(location::GpsInfo const & info)
|
|||
m_locationState.UpdateGps(info);
|
||||
if (m_centeringMode == ECenterAndScale)
|
||||
{
|
||||
CenterAndScaleViewport();
|
||||
/// calling function twice to eliminate scaling
|
||||
/// and rounding errors when positioning from 2-3 scale into 16-17
|
||||
CenterAndScaleViewport();
|
||||
m_centeringMode = ECenterOnly;
|
||||
}
|
||||
|
@ -180,7 +183,7 @@ void Framework::SetMaxWorldRect()
|
|||
|
||||
bool Framework::NeedRedraw() const
|
||||
{
|
||||
return m_renderPolicy && m_renderPolicy->NeedRedraw();
|
||||
return m_renderPolicy->NeedRedraw();
|
||||
}
|
||||
|
||||
void Framework::SetNeedRedraw(bool flag)
|
||||
|
|
Loading…
Add table
Reference in a new issue