Display only Primary names for features on the world zoom level

This commit is contained in:
Alex Zolotarev 2013-07-03 22:21:28 +03:00 committed by Alex Zolotarev
parent 1de9912e0f
commit ca2092c22a

View file

@ -5,6 +5,7 @@
#include "../indexer/drawing_rules.hpp"
#include "../indexer/feature.hpp"
#include "../indexer/feature_visibility.hpp"
#include "../indexer/scales.hpp"
#ifdef OMIM_PRODUCTION
#include "../indexer/drules_struct_lite.pb.h"
@ -72,6 +73,13 @@ namespace di
f.GetPreferredNames(m_primaryText, m_secondaryText);
// Draw only primary text for features on the World zoom level
if (zoom <= scales::GetUpperWorldScale() && !m_secondaryText.empty())
{
m_primaryText.swap(m_secondaryText);
m_secondaryText.clear();
}
// Get house number if feature has one.
string houseNumber = f.GetHouseNumber();