label: autofollow

Young Kim youngkkim at GMAIL.COM
Sun Oct 14 19:09:36 EDT 2007


Hello all,

I'm having trouble assigning "follow" angle to label obj.
I'm using PHP mapscript to generate images.



The following line throws error:
$class_obj->label->set("autofollow", MS_TRUE);

error msg:
PHP Fatal error:  Property 'autofollow' does not exist in this object.

according to mapscript documentation,
http://mapserver.gis.umn.edu/docs/reference/mapscript/index_html#labelobj,
this should be available.



When i draw same layer via a map file and using "ANGLE follow",
everything works perfectly.
Am I missing something?


Thanks.



Versions:
MS - 5.1-dev, SVN trunk
php-5.2.3



More information about the mapserver-users mailing list