diff options
author | Sergey Yershov <yershov@corp.mail.ru> | 2015-12-24 13:06:40 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2015-12-24 13:06:40 +0300 |
commit | b06658693edb99604d3771aa91474671efc6e1f3 (patch) | |
tree | 86969c5a3814a3182dbb2dda31b6a1bb1dd5c95b /indexer/feature_visibility.cpp | |
parent | 14f162dd8a855a074b4ff2b5d90e310a99ff78fb (diff) |
Fix dropping building parts
Diffstat (limited to 'indexer/feature_visibility.cpp')
-rw-r--r-- | indexer/feature_visibility.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/indexer/feature_visibility.cpp b/indexer/feature_visibility.cpp index 7d7815fc1d..95cc530df1 100644 --- a/indexer/feature_visibility.cpp +++ b/indexer/feature_visibility.cpp @@ -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; } |