[mapserver-users] Color property in label object with php/Mapscript
Daniel Morissette
morissette@dmsolutions.ca
Fri, 22 Nov 2002 14:01:08 -0500
otesta@s6.coopenet.com.ar wrote:
>
> I have the next question..., what value must take the color property within label object in php/mapscript??? This value must be an integer, but how can put in this value the black color???
>
In MapServer 3.6:
$label->set("color", $map->addColor(0, 0, 0));
And in 3.7 things change a bit, 'color' is a colorObj:
$label->color->setRGB(0, 0, 0);
Daniel
--
------------------------------------------------------------
Daniel Morissette morissette@dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------