diff options
author | Darafei Praliaskouski <komzpa@gmail.com> | 2013-09-13 21:09:38 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:01:27 +0300 |
commit | 3f8c3e899c261a2cca966f8ae8835640f94f30ca (patch) | |
tree | e122e4b9b67501eb57076d18229434b467967685 | |
parent | 9c25d65c14a616a01184235a0d5d7ce3a53ca38b (diff) |
[map] circles for polygons
-rw-r--r-- | map/drawer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/map/drawer.cpp b/map/drawer.cpp index 42fe4377a6..eb4fe4938d 100644 --- a/map/drawer.cpp +++ b/map/drawer.cpp @@ -347,14 +347,16 @@ void Drawer::Draw(di::FeatureInfo const & fi) if (isArea) { bool const isFill = pRule->GetArea() != 0; - bool const hasSym = hasSymbol && ((pRule->GetType() & drule::way) != 0); + bool const isWay = (pRule->GetType() & drule::way) != 0; for (list<di::AreaInfo>::const_iterator i = fi.m_areas.begin(); i != fi.m_areas.end(); ++i) { if (isFill) drawArea(*i, di::DrawRule(pRule, depth, false)); - else if (hasSym) + else if (hasSymbol && !isWay) drawSymbol(i->GetCenter(), graphics::EPosCenter, di::DrawRule(pRule, depth, false), id); + else if (isCircle && !isWay) + drawCircle(i->GetCenter(), graphics::EPosCenter, di::DrawRule(pRule, depth, false), id); } } |