Removed text filtration to avoid overhead. World.mwm data now is OK.

This commit is contained in:
vng 2014-08-13 12:25:43 +03:00 committed by Alex Zolotarev
parent 46693a03f0
commit 3e1807e096

View file

@ -74,9 +74,11 @@ namespace di
}
// Low zoom heuristics - don't show superlong names on World map.
strings::UniString uniPrimary = strings::MakeUniString(m_primaryText);
if (zoom <= 5 && uniPrimary.size() > 50)
m_primaryText.clear();
//if (zoom <= 5)
//{
// if (strings::MakeUniString(m_primaryText).size() > 50)
// m_primaryText.clear();
//}
string houseNumber = f.GetHouseNumber();
bool const hasName = !m_primaryText.empty() || !houseNumber.empty();