python-mapnik
python-mapnik copied to clipboard
TextSymbolizer.name fails
The following
import mapnik
ts = mapnik.TextSymbolizer()
ts.name = '[name]'
fails with
Traceback (most recent call last):
File "/Users/larsga/tmp/tst.py", line 35, in <module>
ts.name = '[name]'
File "/usr/local/lib/python2.7/site-packages/mapnik/__init__.py", line 784, in name
self.properties.format_tree = FormattingText(name)
NameError: global name 'FormattingText' is not defined