forked from organicmaps/organicmaps
[search] Get region for all feature types by center of limit rect.
This commit is contained in:
parent
7e154f966d
commit
8cd568ddf6
1 changed files with 1 additions and 4 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue