fix default values for vertical_alignment in the TextSymbolizer and ShieldSymbolizer - closes #468
This commit is contained in:
parent
de4032a602
commit
6abbfca492
2 changed files with 4 additions and 4 deletions
|
@ -891,7 +891,7 @@ namespace mapnik
|
|||
get_attr<label_placement_e>(sym, "placement", POINT_PLACEMENT);
|
||||
text_symbol.set_label_placement( placement );
|
||||
// vertical alignment
|
||||
vertical_alignment_e valign = get_attr<vertical_alignment_e>(sym, "vertical_alignment", BOTTOM);
|
||||
vertical_alignment_e valign = get_attr<vertical_alignment_e>(sym, "vertical_alignment", MIDDLE);
|
||||
text_symbol.set_vertical_alignment(valign);
|
||||
|
||||
// halo fill and radius
|
||||
|
@ -1143,7 +1143,7 @@ namespace mapnik
|
|||
}
|
||||
|
||||
// vertical alignment
|
||||
vertical_alignment_e valign = get_attr<vertical_alignment_e>(sym, "vertical_alignment", BOTTOM);
|
||||
vertical_alignment_e valign = get_attr<vertical_alignment_e>(sym, "vertical_alignment", MIDDLE);
|
||||
shield_symbol.set_vertical_alignment(valign);
|
||||
|
||||
// horizontal alignment
|
||||
|
|
|
@ -99,7 +99,7 @@ text_symbolizer::text_symbolizer(expression_ptr name, std::string const& face_na
|
|||
halo_fill_(color(255,255,255)),
|
||||
halo_radius_(0),
|
||||
label_p_(POINT_PLACEMENT),
|
||||
valign_(BOTTOM),
|
||||
valign_(MIDDLE),
|
||||
anchor_(0.0,0.5),
|
||||
displacement_(0.0,0.0),
|
||||
avoid_edges_(false),
|
||||
|
@ -129,7 +129,7 @@ text_symbolizer::text_symbolizer(expression_ptr name, unsigned size, color const
|
|||
halo_fill_(color(255,255,255)),
|
||||
halo_radius_(0),
|
||||
label_p_(POINT_PLACEMENT),
|
||||
valign_(BOTTOM),
|
||||
valign_(MIDDLE),
|
||||
anchor_(0.0,0.5),
|
||||
displacement_(0.0,0.0),
|
||||
avoid_edges_(false),
|
||||
|
|
Loading…
Reference in a new issue