[mapserver-users] Set Colors with php_mapscript in 3.7

Nicol Hermann mapserver at geochem.de
Sun Nov 10 02:48:12 PST 2002


Dear List,

how can i set colors with php_mapscript in Mapserver 3.7?
I am using the following code with 3.6.3 which works fine.

$classObj = ms_newClassObj($layer);
$classObj -> set("color", $map->addColor(255, 255, 0) );
$classObj -> set("outlinecolor", $map->addColor(0, 0, 0) );

The same code causes a fatal error with the CVS Version of 3.7:

Fatal error: Call to undefined function: addcolor() in
/home/nicol/public_html/mapserver/mapserver_class.inc on line 499

I also tried:
$colorindex = $map->addColor(255, 255, 0);
$classObj -> set("color", $colorindex );

The result is the same.
What am I doing wrong?

Thanks
Nicol




More information about the MapServer-users mailing list