Commit 2b3efa15 authored by Emmanuel Christophe's avatar Emmanuel Christophe

Text follow lines

parent 220860da
...@@ -219,7 +219,9 @@ int main(int argc, char * argv[]) ...@@ -219,7 +219,9 @@ int main(int argc, char * argv[])
// TextSymbolizer name="name" face_name="DejaVu Sans Book" size="9" fill="#000" halo_radius="1" placement="line" // TextSymbolizer name="name" face_name="DejaVu Sans Book" size="9" fill="#000" halo_radius="1" placement="line"
// text_symbolizer (std::string const &name, std::string const &face_name, unsigned size, color const &fill) // text_symbolizer (std::string const &name, std::string const &face_name, unsigned size, color const &fill)
// text_symbolizer (std::string const &name, unsigned size, color const &fill) // text_symbolizer (std::string const &name, unsigned size, color const &fill)
rule.append(mapnik::text_symbolizer("name", "DejaVu Sans Book", 9, mapnik::color("#000"))); mapnik::text_symbolizer textSymb("name", "DejaVu Sans Book", 9, mapnik::color("#000"));
textSymb.set_label_placement(mapnik::LINE_PLACEMENT);
rule.append(textSymb);
style.add_rule(rule); style.add_rule(rule);
m.insert_style("roads",style); m.insert_style("roads",style);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment