[mapserver-users] Re: labelObj question - PHP
Daniel Morissette
morissette at dmsolutions.ca
Thu Nov 14 12:38:03 PST 2002
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 at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
More information about the MapServer-users
mailing list