Assigned country id & ads engine to place page which is produced by search result.

This commit is contained in:
VladiMihaylenko 2017-12-14 19:15:25 +03:00 committed by Roman Kuznetsov
parent 02382a06b1
commit f9d418130f

View file

@ -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 */);