forked from organicmaps/organicmaps
Assigned country id & ads engine to place page which is produced by search result.
This commit is contained in:
parent
02382a06b1
commit
f9d418130f
1 changed files with 2 additions and 0 deletions
|
@ -1508,6 +1508,8 @@ void Framework::SelectSearchResult(search::Result const & result, bool animation
|
|||
case Result::RESULT_SUGGEST_FROM_FEATURE: ASSERT(false, ("Suggests should not be here.")); return;
|
||||
}
|
||||
|
||||
info.SetAdsEngine(m_adsEngine.get());
|
||||
SetPlacePageLocation(info);
|
||||
m2::PointD const center = info.GetMercator();
|
||||
if (m_drapeEngine != nullptr)
|
||||
m_drapeEngine->SetModelViewCenter(center, scale, animation, true /* trackVisibleViewport */);
|
||||
|
|
Loading…
Add table
Reference in a new issue