forked from organicmaps/organicmaps
Display only Primary names for features on the world zoom level
This commit is contained in:
parent
1de9912e0f
commit
ca2092c22a
1 changed files with 8 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue