From f64190e47fce0afd83241c98bdb1ec9d589fc256 Mon Sep 17 00:00:00 2001 From: Hermann Kraus Date: Fri, 3 Feb 2012 02:00:21 +0100 Subject: [PATCH] Make TextSymbolizer default constructable and add "placements" property. --- bindings/python/mapnik_text_symbolizer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bindings/python/mapnik_text_symbolizer.cpp b/bindings/python/mapnik_text_symbolizer.cpp index 47f48699d..b66093ba3 100644 --- a/bindings/python/mapnik_text_symbolizer.cpp +++ b/bindings/python/mapnik_text_symbolizer.cpp @@ -146,7 +146,7 @@ void export_text_symbolizer() { using namespace boost::python; - class_("TextSymbolizer",init()) + class_("TextSymbolizer") /* // todo - all python classes can have kwargs and default constructors class_("TextSymbolizer", @@ -162,6 +162,9 @@ void export_text_symbolizer() */ //.def_pickle(text_symbolizer_pickle_suite()) + .add_property("placements", + &text_symbolizer::get_placement_options, + &text_symbolizer::set_placement_options) .add_property("allow_overlap", &text_symbolizer::get_allow_overlap, &text_symbolizer::set_allow_overlap,