Permalink
Browse files

A CLASS can now have multiple labels so update syntax to reflect this

  • Loading branch information...
geographika committed Mar 11, 2018
1 parent 175902b commit 2b32adaa9b6ffe08d1224f517191f9682e03092f
Showing with 6 additions and 4 deletions.
  1. +6 −4 mapscript/python/tests/cases/fonttest.py
@@ -57,10 +57,12 @@ def testSettingFonts(self):
lo.status = mapscript.MS_DEFAULT
co = mapscript.classObj()
co.label.type = mapscript.MS_TRUETYPE
co.label.font = 'Vera'
co.label.size = 10
co.label.color.setHex('#000000')
lbl =mapscript.labelObj()
lbl.type = mapscript.MS_TRUETYPE
lbl.font = 'Vera'
lbl.size = 10
lbl.color.setHex('#000000')
co.addLabel(lbl)
so = mapscript.styleObj()
so.symbol = 0

0 comments on commit 2b32ada

Please sign in to comment.