[mapserver-users] Change scalebar background color using
php/mapscript
Daniel Morissette
morissette@dmsolutions.ca
Thu, 29 Aug 2002 21:40:16 -0400
"Van Ulden, Joost" wrote:
>
> Has anyone changed the scalebar background color using php/mapscript. I am
> guessing that it looks something like this:
>
> $map->{scalebar}->{backgroundcolor} = 255,60,18
>
With PHP MapScript you always have to use a set() method to change class
members.
This should do it:
$map->scalebar->set("backgroundcolor", $map->addColor(255,60,18));
Daniel
--
------------------------------------------------------------
Daniel Morissette morissette@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.