fix default values for vertical_alignment in the TextSymbolizer and ShieldSymbolizer - closes #468

This commit is contained in:
Dane Springmeyer 2010-01-07 02:21:07 +00:00
parent de4032a602
commit 6abbfca492
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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),