diff options
author | vng <viktor.govako@gmail.com> | 2011-06-01 02:48:03 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:18:38 +0300 |
commit | 90886f0e123ef3821ac74d4414bd265fe4a04f76 (patch) | |
tree | 03f46e7b6c12d25016423540c701726c0c82b548 /indexer/feature_visibility.hpp | |
parent | ce0472ccfdd972640c87fb377fa1ac645bca31a6 (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.hpp | 11 |
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; + } } |