[mapserver-users] Re: labelObj question - PHP
Daniel Morissette
morissette@dmsolutions.ca
Thu, 14 Nov 2002 15:38:03 -0500
Dylan Keon wrote:
>
> Since there isn't a getLabel method, what is the PHP syntax for setting
> label parameters? The closest I could find in the archives is something
> like $layerClass->{label}->set('size', 20); but that didn't work.
>
Well, I didn't try it myself before writing this, but what you did
should work:
$layerClass->{label}->set('size', 20)
Are you sure that's it's not something else that you're missing such as
the label type (TRUETYPE)?
One way to test that your label size is being set properly could be to
call $map->save("/tmp/test.map") after setting the label size and see if
the value is correct. If it is then it must be something else you're
missing in your label defn.
--
------------------------------------------------------------
Daniel Morissette morissette@dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------