Merge pull request #1125 from syershov/fix-drop-buildingpart

Fix drop buildingpart
This commit is contained in:
Viktor Govako 2015-12-24 15:11:37 +03:00
commit 7a19c372fa

View file

@ -248,11 +248,14 @@ bool IsDrawableForIndexGeometryOnly(FeatureBase const & f, int level)
{
Classificator const & c = classif();
static uint32_t const buildingPartType = c.GetTypeByPath({"building:part"});
TypesHolder const types(f);
if (types.GetGeoType() == GEOM_AREA && !types.Has(c.GetCoastType()) &&
!scales::IsGoodForLevel(level, f.GetLimitRect()))
return false;
if (types.GetGeoType() == GEOM_AREA
&& !types.Has(c.GetCoastType()) && !types.Has(buildingPartType)
&& !scales::IsGoodForLevel(level, f.GetLimitRect()))
return false;
return true;
}