[mapserver-users] Color property in label object with php/Mapscript
Daniel Morissette
morissette at dmsolutions.ca
Fri Nov 22 11:01:08 PST 2002
otesta at 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 at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
More information about the MapServer-users
mailing list