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,