[mapserver-users] Change scalebar background color using php/mapscript
Daniel Morissette
morissette at dmsolutions.ca
Thu Aug 29 18:40:16 PDT 2002
"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 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