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>2012-09-20 17:44:28 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:43:29 +0300
commitcdc487b5cfcb4ed5fb066dafb643cc66d7cfbee8 (patch)
tree55690a524a7344444da689f9f0348902da138342 /indexer/feature_visibility.hpp
parentf54438b19ec294232eac95bdf20a16c94f62ba66 (diff)
Do NOT filter types for area features (They combine all drawing rules).
Diffstat (limited to 'indexer/feature_visibility.hpp')
-rw-r--r--indexer/feature_visibility.hpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/indexer/feature_visibility.hpp b/indexer/feature_visibility.hpp
index 6f3fea925c..081a38ba43 100644
--- a/indexer/feature_visibility.hpp
+++ b/indexer/feature_visibility.hpp
@@ -15,19 +15,24 @@ namespace feature
{
class TypesHolder;
- // Note! do not change this values. Should be equal with EGeomType.
+ /// @note do not change this values. Should be equal with EGeomType.
+ /// Used for checking visibility (by drawing style) for feature's geometry type
+ /// (for Area - check only area type, but can draw symbol or caption).
enum FeatureGeoType {
FEATURE_TYPE_POINT = 0,
FEATURE_TYPE_LINE = 1,
- FEATURE_TYPE_AREA = 2,
- FEATURE_TYPE_LINE_AREA = 3
+ FEATURE_TYPE_AREA = 2
};
bool IsDrawableAny(uint32_t type);
- bool IsDrawableLike(vector<uint32_t> const & types, FeatureGeoType ft);
bool IsDrawableForIndex(FeatureBase const & f, int level);
+ /// @name Be carefull with FEATURE_TYPE_AREA.
+ /// It's check only unique area styles, be it also can draw symbol or caption.
+ //@{
+ bool IsDrawableLike(vector<uint32_t> const & types, FeatureGeoType ft);
bool RemoveNoDrawableTypes(vector<uint32_t> & types, FeatureGeoType ft);
+ //@}
int GetMinDrawableScale(FeatureBase const & f);