diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2016-09-15 13:04:36 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2016-09-27 11:53:44 +0300 |
commit | 06cf7a28debe3d2c922e8d7114f06c154356e360 (patch) | |
tree | 6a7846556ff2579d12325efdc1f99bfd2b364bad /drape_frontend/rule_drawer.cpp | |
parent | 1a1ebbcbe99a80210049bea08045da3ea7835d91 (diff) |
Added line simplification
Diffstat (limited to 'drape_frontend/rule_drawer.cpp')
-rw-r--r-- | drape_frontend/rule_drawer.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drape_frontend/rule_drawer.cpp b/drape_frontend/rule_drawer.cpp index 84ad111adc..ce9fa8fe10 100644 --- a/drape_frontend/rule_drawer.cpp +++ b/drape_frontend/rule_drawer.cpp @@ -44,9 +44,6 @@ df::BaseApplyFeature::HotelData ExtractHotelData(FeatureType const & f) namespace df { -int const kLineSimplifyLevelStart = 10; -int const kLineSimplifyLevelEnd = 12; - RuleDrawer::RuleDrawer(TDrawerCallback const & fn, TCheckCancelledCallback const & checkCancelled, TIsCountryLoadedByNameFn const & isLoadedFn, @@ -237,11 +234,9 @@ void RuleDrawer::operator()(FeatureType const & f) } else if (s.LineStyleExists()) { - ApplyLineFeature apply(m_globalRect.Center(), m_currentScaleGtoP, - insertShape, f.GetID(), m_globalRect, minVisibleScale, - f.GetRank(), s.GetCaptionDescription(), - zoomLevel >= kLineSimplifyLevelStart && zoomLevel <= kLineSimplifyLevelEnd, - f.GetPointsCount()); + ApplyLineFeature apply(m_globalRect.Center(), m_currentScaleGtoP, insertShape, f.GetID(), + m_globalRect, minVisibleScale, f.GetRank(), s.GetCaptionDescription(), + zoomLevel, f.GetPointsCount()); f.ForEachPoint(apply, zoomLevel); if (CheckCancelled()) |