forked from organicmaps/organicmaps
Use POI selection type when clicking on a single search result.
This commit is contained in:
parent
65460b65a9
commit
43f6ee4a70
1 changed files with 2 additions and 8 deletions
|
@ -1172,14 +1172,8 @@ void Framework::ShowSearchResult(search::Result const & res)
|
|||
else
|
||||
ShowRect(df::GetRectForDrawScale(scale, center));
|
||||
|
||||
{
|
||||
UserMarkControllerGuard guard(m_bmManager, UserMarkType::SEARCH_MARK);
|
||||
guard.m_controller.SetIsDrawable(false);
|
||||
guard.m_controller.Clear();
|
||||
guard.m_controller.SetIsVisible(true);
|
||||
UNUSED_VALUE(guard.m_controller.CreateUserMark(center));
|
||||
}
|
||||
ActivateMapSelection(false, df::SelectionShape::OBJECT_USER_MARK, info);
|
||||
UserMarkContainer::UserMarkForPoi()->SetPtOrg(center);
|
||||
ActivateMapSelection(false, df::SelectionShape::OBJECT_POI, info);
|
||||
}
|
||||
|
||||
size_t Framework::ShowSearchResults(search::Results const & results)
|
||||
|
|
Loading…
Add table
Reference in a new issue