python-mapnik icon indicating copy to clipboard operation
python-mapnik copied to clipboard

TextSymbolizer.name fails

Open larsga opened this issue 5 years ago • 0 comments

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

larsga avatar Dec 27 '19 13:12 larsga