[mapserver-users] PHP_Mapscript addColor function problem
Daniel Morissette
morissette at dmsolutions.ca
Wed Jul 17 06:02:32 PDT 2002
Richard Barahona wrote:
>
> Hi list,
> I try to define with PHP_mapscript a transparent color like this
>
> $icolor = $gpoMap->addColor(-1,-1,-1);
>
> but i get an error back.
>
> Any idea ? any workaround ?
>
Hi Richard,
Simply setting the color value to -1 should do, you do not need to call
addColor() for -1 -1 -1
e.g.
$class->set("color", -1);
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
Don't put for tomorrow what you can do today, because if
you enjoy it today you can do it again tomorrow.
More information about the MapServer-users
mailing list