I believe it's done with the setBinding method. Labels and styles have that 
method.

Steve

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Fergus McDonald
Sent: Friday, January 16, 2015 8:54 AM
To: [email protected]
Subject: [mapserver-users] Set LABELANGLE [attribute] via Mapscript (6.41)

I might be missing something in the docs, but how does one set the labelangle 
for a mapscript labelObj to an attribute name, the equivalent of ANGLE 
[attribute] in the LABEL declaration of the MAP file?

The angle property of labelObj can only be a float value.

The layer object has a labelangleitem property mentioned in the main docs, but 
the "PHP Mapscript Migration Guide" says that this property was removed as of 
version 6.
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to