forked from organicmaps/organicmaps
[core] method for invalidate position in C++ core
This commit is contained in:
parent
f09fa9a457
commit
fb8c030239
2 changed files with 8 additions and 0 deletions
|
@ -320,6 +320,13 @@ void State::RemovePositionChangedListener(int slotID)
|
|||
m_positionListeners.erase(slotID);
|
||||
}
|
||||
|
||||
void State::InvalidatePosition()
|
||||
{
|
||||
SetModeInfo(ChangeMode(m_modeInfo, PendingPosition));
|
||||
setIsVisible(false);
|
||||
invalidate();
|
||||
}
|
||||
|
||||
void State::cache()
|
||||
{
|
||||
CachePositionArrow();
|
||||
|
|
|
@ -69,6 +69,7 @@ namespace location
|
|||
int AddPositionChangedListener(TPositionListener const & func);
|
||||
void RemovePositionChangedListener(int slotID);
|
||||
|
||||
void InvalidatePosition();
|
||||
void TurnOff();
|
||||
void StopCompassFollowing();
|
||||
void StopLocationFollow();
|
||||
|
|
Loading…
Add table
Reference in a new issue