add support for halo-rasterizer for shields - closes #2226

This commit is contained in:
Dane Springmeyer 2014-04-25 16:01:35 -07:00
parent 4ad7b13799
commit a4985b3b79
4 changed files with 3 additions and 0 deletions

View file

@ -1309,6 +1309,8 @@ void map_parser::parse_shield_symbolizer(rule & rule, xml_node const& sym)
ensure_exists(file);
shield_symbol.set_filename( parse_path(file, sym.get_tree().path_expr_grammar) );
parse_symbolizer_base(shield_symbol, sym);
optional<halo_rasterizer_e> halo_rasterizer = sym.get_opt_attr<halo_rasterizer_e>("halo-rasterizer");
if (halo_rasterizer) shield_symbol.set_halo_rasterizer(*halo_rasterizer);
rule.append(shield_symbol);
}
catch (config_error const& ex)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4 KiB

After

Width:  |  Height:  |  Size: 4 KiB

View file

@ -69,6 +69,7 @@
face-name="DejaVu Sans Book"
halo-fill="white"
halo-radius="2"
halo-rasterizer="fast"
spacing="15">
'hi'
</ShieldSymbolizer>