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:
authorvng <viktor.govako@gmail.com>2011-06-01 02:48:03 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:18:38 +0300
commit90886f0e123ef3821ac74d4414bd265fe4a04f76 (patch)
tree03f46e7b6c12d25016423540c701726c0c82b548 /indexer/feature_visibility.hpp
parentce0472ccfdd972640c87fb377fa1ac645bca31a6 (diff)
- Don't store names for features with invisible texts.
- Try to make better rank for drawing text font.
Diffstat (limited to 'indexer/feature_visibility.hpp')
-rw-r--r--indexer/feature_visibility.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/indexer/feature_visibility.hpp b/indexer/feature_visibility.hpp
index 37349c3f31..e07bc62c25 100644
--- a/indexer/feature_visibility.hpp
+++ b/indexer/feature_visibility.hpp
@@ -23,5 +23,16 @@ namespace feature
int GetDrawRule(FeatureBase const & f, int level, vector<drule::Key> & keys, string & names);
bool IsHighway(vector<uint32_t> const & types);
+
bool IsCountry(uint32_t type);
+ template <class IterT>
+ inline bool IsCountry(IterT beg, IterT end)
+ {
+ while (beg != end)
+ {
+ if (IsCountry(*beg++))
+ return true;
+ }
+ return false;
+ }
}