[mapserver-users] Color property in label object with php/Mapscript

Daniel Morissette morissette at dmsolutions.ca
Fri Nov 22 14:01:08 EST 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