forked from organicmaps/organicmaps
[map] circles for polygons
This commit is contained in:
parent
9c25d65c14
commit
3f8c3e899c
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue