forked from organicmaps/organicmaps
Do not remove names in coastline features.
This commit is contained in:
parent
71bbdf2278
commit
883a8fe414
1 changed files with 5 additions and 1 deletions
|
@ -159,8 +159,12 @@ bool FeatureBuilder1::PreSerialize()
|
|||
}
|
||||
|
||||
// Clear name for features with invisible texts.
|
||||
if (!m_Params.name.IsEmpty() && feature::DrawableScaleRangeForText(GetFeatureBase()).first == -1)
|
||||
uint32_t dummy;
|
||||
if (!m_Params.name.IsEmpty() && !GetCoastCell(dummy) &&
|
||||
(feature::DrawableScaleRangeForText(GetFeatureBase()).first == -1))
|
||||
{
|
||||
m_Params.name.Clear();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue