[search] Get region for all feature types by center of limit rect.

This commit is contained in:
vng 2012-02-07 18:56:37 +03:00 committed by Alex Zolotarev
parent 7e154f966d
commit 8cd568ddf6

View file

@ -33,10 +33,7 @@ IntermediateResult::IntermediateResult(m2::RectD const & viewportRect, m2::Point
if (!fileName.empty())
m_region.SetName(fileName);
else
{
if (f.GetFeatureType() == feature::GEOM_POINT)
m_region.SetPoint(f.GetCenter());
}
m_region.SetPoint(m_rect.Center());
CalcCommonParams(viewportRect, pos);
m_searchRank = feature::GetSearchRank(m_types, m_rect.Center(), f.GetPopulation());