diff --git a/map/framework.cpp b/map/framework.cpp index b292ea5d19..aebbcda861 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -732,6 +732,7 @@ void Framework::ShowBookmark(BookmarkAndCategory const & bnc) place_page::Info info; FillBookmarkInfo(*mark, bnc, info); ActivateMapSelection(true, df::SelectionShape::OBJECT_USER_MARK, info); + m_lastTapEvent.reset(new df::TapInfo { m_currentModelView.GtoP(info.GetMercator()), false, false, info.GetID() }); } void Framework::ShowTrack(Track const & track) @@ -1289,6 +1290,7 @@ void Framework::ShowSearchResult(search::Result const & res) UserMarkContainer::UserMarkForPoi()->SetPtOrg(center); ActivateMapSelection(false, df::SelectionShape::OBJECT_POI, info); + m_lastTapEvent.reset(new df::TapInfo { m_currentModelView.GtoP(center), false, false, info.GetID() }); } size_t Framework::ShowSearchResults(search::Results const & results) @@ -1701,6 +1703,7 @@ bool Framework::ShowMapForURL(string const & url) FillPointInfo(point, name, info); ActivateMapSelection(false, df::SelectionShape::OBJECT_POI, info); } + m_lastTapEvent.reset(new df::TapInfo{ m_currentModelView.GtoP(info.GetMercator()), false, false, info.GetID() }); } return true; diff --git a/map/place_page_info.cpp b/map/place_page_info.cpp index b0fc8fae2c..648626f87a 100644 --- a/map/place_page_info.cpp +++ b/map/place_page_info.cpp @@ -44,6 +44,9 @@ string Info::GetTitle() const string Info::GetSubtitle() const { + if (!IsFeature()) + return {}; + vector values; // Type.