[Mapserver-users] Color changing

Anton =?Windows-1251?B?zeX05eT85eIgwC7RLg==?= <gtheme@narod.ru>
Thu, 19 Feb 2004 10:00:37 +0800


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@narod.ru

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users