forked from organicmaps/organicmaps
Better GetPopulationRank routine.
This commit is contained in:
parent
1da1ecf3b6
commit
4624371bc4
2 changed files with 2 additions and 2 deletions
|
@ -1006,7 +1006,7 @@ double FeatureType::GetPopulationDrawRank() const
|
|||
|
||||
// Do not return rank for countries.
|
||||
if (feature::IsCountry(m_Types, m_Types + GetTypesCount()))
|
||||
return 0.5;
|
||||
return 0.0;
|
||||
else
|
||||
return min(3.0E6, static_cast<double>(n)) / 3.0E6;
|
||||
}
|
||||
|
|
|
@ -163,7 +163,7 @@ namespace fwork
|
|||
|
||||
shared_ptr<di::DrawInfo> ptr(
|
||||
new di::DrawInfo(f.GetPreferredDrawableName(languages::GetCurrentPriorities()),
|
||||
f.GetPopulationDrawRank()));
|
||||
m_zoom > 5 ? f.GetPopulationDrawRank() : 0.0));
|
||||
|
||||
DrawerYG * pDrawer = GetDrawer();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue