Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Yershov <yershov@corp.mail.ru>2015-12-24 13:06:40 +0300
committerSergey Yershov <yershov@corp.mail.ru>2015-12-24 13:06:40 +0300
commitb06658693edb99604d3771aa91474671efc6e1f3 (patch)
tree86969c5a3814a3182dbb2dda31b6a1bb1dd5c95b /indexer/feature_visibility.cpp
parent14f162dd8a855a074b4ff2b5d90e310a99ff78fb (diff)
Fix dropping building parts
Diffstat (limited to 'indexer/feature_visibility.cpp')
-rw-r--r--indexer/feature_visibility.cpp9
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;
}