forked from organicmaps/organicmaps
[core] show PPP when bookmark seleced from bookmark list
This commit is contained in:
parent
55abb6316f
commit
26f201ccdf
3 changed files with 3 additions and 11 deletions
|
@ -402,8 +402,9 @@ void Framework::ShowBookmark(BookmarkAndCategory const & bnc)
|
|||
scale = scales::GetUpperComfortScale();
|
||||
|
||||
ShowRectExVisibleScale(m_scales.GetRectForDrawScale(scale, bmk->GetOrg()));
|
||||
|
||||
m_balloonManager.OnBookmarkClick(bnc);
|
||||
Bookmark * mark = GetBmCategory(bnc.first)->GetBookmark(bnc.second);
|
||||
ActivateUserMark(mark);
|
||||
m_balloonManager.OnShowMark(mark);
|
||||
}
|
||||
|
||||
void Framework::ShowTrack(Track const & track)
|
||||
|
|
|
@ -32,13 +32,6 @@ void PinClickManager::OnShowMark(UserMark const * mark)
|
|||
SetBalloonVisible(mark != NULL);
|
||||
}
|
||||
|
||||
void PinClickManager::OnBookmarkClick(BookmarkAndCategory const & bnc)
|
||||
{
|
||||
Bookmark * mark = m_f.GetBmCategory(bnc.first)->GetBookmark(bnc.second);
|
||||
m_f.ActivateUserMark(mark);
|
||||
SetBalloonVisible(true);
|
||||
}
|
||||
|
||||
void PinClickManager::SetBalloonVisible(bool isVisible)
|
||||
{
|
||||
if (!isVisible && m_f.HasActiveUserMark())
|
||||
|
|
|
@ -30,8 +30,6 @@ public:
|
|||
void RenderPolicyCreated(graphics::EDensity density) {}
|
||||
void LocationChanged(location::GpsInfo const & info) {}
|
||||
|
||||
void OnBookmarkClick(BookmarkAndCategory const & bnc);
|
||||
|
||||
void OnShowMark(UserMark const * mark);
|
||||
|
||||
void Hide();
|
||||
|
|
Loading…
Add table
Reference in a new issue