ensure proper setting of allow_overlap and opacity when contructing a point_symbolizer without an image file
This commit is contained in:
parent
c20f16358c
commit
63ab05c112
1 changed files with 15 additions and 5 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue