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:
authorDarafei Praliaskouski <komzpa@gmail.com>2013-09-13 21:09:38 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:01:27 +0300
commit3f8c3e899c261a2cca966f8ae8835640f94f30ca (patch)
treee122e4b9b67501eb57076d18229434b467967685
parent9c25d65c14a616a01184235a0d5d7ce3a53ca38b (diff)
[map] circles for polygons
-rw-r--r--map/drawer.cpp6
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);
}
}