ensure proper setting of allow_overlap and opacity when contructing a point_symbolizer without an image file

This commit is contained in:
Dane Springmeyer 2010-04-15 06:09:21 +00:00
parent c20f16358c
commit 63ab05c112

View file

@ -718,11 +718,21 @@ void map_parser::parse_point_symbolizer( rule_type & rule, ptree const & sym )
}
}
}
else
{
rule.append(point_symbolizer());
}
}
else
{
point_symbolizer symbol;
if (allow_overlap)
{
symbol.set_allow_overlap( * allow_overlap );
}
if (opacity)
{
symbol.set_opacity( * opacity );
}
rule.append(symbol);
}
}
catch (const config_error & ex)
{