[mapserver-users] Changing IMAGECOLOR with PHP MapScript
Jeff McKenna
mckenna at dmsolutions.ca
Thu Sep 27 15:09:31 PDT 2001
"Hankley, Chip" wrote:
>
> OK,
>
> I tried this
> ($map is passed)
> $bgcolor = $map->addcolor(238,238,238);
> $map->set("imagecolor", $bgcolor);
>
> ...and now I get the following error:
>
> Fatal error: Property 'imagecolor' does not exist in this object. in
> c:\inetpub\wwwroot\seating\seating.php on line 567
>
I'm sorry, I should read the documentation more carefully. Try this:
$map = ms_newMapObj("GB01.map");
$map->imagecolor->setRGB(238,238,238);
Jeff
--
Jeff McKenna
GIS Specialist
DM Solutions Group Inc.
http://www.dmsolutions.ca/
More information about the MapServer-users
mailing list