[Mapserver-users] Color changing

Нефедьев А.С. gtheme at narod.ru
Wed Feb 18 21:00:37 EST 2004


Hello, mapserver users!
I have some question.
I need to set a custom color to a class.
I add a color to map's palette:
$color2 = $map->addColor(0, 0, 255);
Than I try to change color of class:
$class1->set("color", $color2);
$class1->set("backgroundcolor", $color2);
$class1->set("overlaycolor", $color2);
Here is the problem: if the color was presented
in palette earlier(in map file), then changing
achieved. But if the color was not presented
in map file, object with this color becomes invisible.
Why?

I'm using WinXP, Apache 2.0.47, MapServer 3.6,
PHP Mapscript 3.6.6.


-- 
Best regards,
 Anton                          mailto:gtheme at narod.ru




More information about the mapserver-users mailing list