forked from organicmaps/organicmaps
[drape] add mul symbols for houses without number
This commit is contained in:
parent
f16a25a276
commit
230de3ef48
1 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "indexer/feature.hpp"
|
||||
#include "indexer/feature_visibility.hpp"
|
||||
#include "indexer/ftypes_matcher.hpp"
|
||||
#include "indexer/drawing_rules.hpp"
|
||||
#include "indexer/drules_include.hpp"
|
||||
#include "indexer/scales.hpp"
|
||||
|
@ -181,6 +182,13 @@ void CaptionDescription::Init(FeatureType const & f,
|
|||
m_houseNumber = f.GetHouseNumber();
|
||||
m_populationRank = CalcPopulationRank(f);
|
||||
|
||||
if (ftypes::IsBuildingChecker::Instance()(f))
|
||||
{
|
||||
// Mark houses without names/numbers so user can select them by single tap.
|
||||
if (m_houseNumber.empty() && m_mainText.empty())
|
||||
m_houseNumber = "·";
|
||||
}
|
||||
|
||||
SwapCaptions(zoomLevel);
|
||||
DiscardLongCaption(zoomLevel);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue