forked from organicmaps/organicmaps
Fixed gps centering mode
This commit is contained in:
parent
e382648cd7
commit
8638055d17
1 changed files with 6 additions and 3 deletions
|
@ -61,11 +61,14 @@ void Framework<TModel>::RemoveMap(string const & datFile)
|
|||
template <typename TModel>
|
||||
void Framework<TModel>::OnLocationStatusChanged(location::TLocationStatus newStatus)
|
||||
{
|
||||
if (newStatus == location::EStarted)
|
||||
switch (newStatus)
|
||||
{
|
||||
case location::EStarted:
|
||||
case location::EFirstEvent:
|
||||
// reset centering mode
|
||||
m_centeringMode = ECenterAndScale;
|
||||
else
|
||||
{
|
||||
break;
|
||||
default:
|
||||
m_centeringMode = EDoNothing;
|
||||
m_locationState.TurnOff();
|
||||
Invalidate();
|
||||
|
|
Loading…
Add table
Reference in a new issue