[Mapserver-users] php mapscript + labelobj
Daniel Morissette
dmorissette at dmsolutions.ca
Thu May 6 11:53:22 PDT 2004
Marcel Koopman wrote:
>
> $class->label->color->setRGB(0,0,0);
> $class->label->size = 8;
> $class->label->antialias = 1;
> $class->label->font = "arial";
>
...
> How do i get the label part with php mapscript?
>
You have to use the set() method:
$class->label->color->setRGB(0,0,0);
$class->label->set("size", 8);
$class->label->set("antialias", MS_TRUE);
$class->label->set("font", "arial");
--
------------------------------------------------------------
Daniel Morissette dmorissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
More information about the MapServer-users
mailing list