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:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2015-12-16 20:05:14 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2015-12-29 16:42:37 +0300
commit3339b9bc1fd14b764c02495b60619421e4b7b29d (patch)
tree519aa94223c0ba986aebd153ded03c37334a2349 /indexer/ftypes_matcher.cpp
parent1b7f5d825774cbb70389219e6f0984842fb9d265 (diff)
Render building parts only in 3d mode.
Diffstat (limited to 'indexer/ftypes_matcher.cpp')
-rw-r--r--indexer/ftypes_matcher.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/indexer/ftypes_matcher.cpp b/indexer/ftypes_matcher.cpp
index 65c6a150a9..09adfa9465 100644
--- a/indexer/ftypes_matcher.cpp
+++ b/indexer/ftypes_matcher.cpp
@@ -172,7 +172,6 @@ IsBuildingChecker::IsBuildingChecker()
Classificator const & c = classif();
m_types.push_back(c.GetTypeByPath({ "building" }));
- m_types.push_back(c.GetTypeByPath({ "building:part" }));
m_types.push_back(c.GetTypeByPath({ "building", "address" }));
}
@@ -200,6 +199,21 @@ IsLocalityChecker::IsLocalityChecker()
m_types.push_back(c.GetTypeByPath(vector<string>(arr[i], arr[i] + 2)));
}
+IsBuildingPartChecker::IsBuildingPartChecker() : BaseChecker(3)
+{
+}
+
+IsBuildingPartChecker const & IsBuildingPartChecker::Instance()
+{
+ static const IsBuildingPartChecker inst;
+ return inst;
+}
+
+bool IsBuildingPartChecker::IsMatched(uint32_t type) const
+{
+ return IsTypeConformed(type, {"building:part"});
+}
+
IsBridgeChecker::IsBridgeChecker() : BaseChecker(3)
{
}