MCPcopy Create free account
hub / github.com/comaps/comaps / RemoveNameIfInvisible

Method RemoveNameIfInvisible

generator/feature_builder.cpp:336–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336void FeatureBuilder::RemoveNameIfInvisible(int minS, int maxS)
337{
338 if (!m_params.name.IsEmpty() && !IsCoastCell())
339 {
340 std::pair<int, int> const range = GetDrawableScaleRangeForRules(GetTypesHolder(), RULE_ANY_TEXT);
341 if (range.first > maxS || range.second < minS)
342 m_params.name.Clear();
343 }
344}
345
346bool FeatureBuilder::operator==(FeatureBuilder const & fb) const
347{

Callers 1

PreprocessForWorldMapFunction · 0.80

Calls 3

IsEmptyMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected