![]() |
||||
|
|
||||
[maplab-users] Color changingAnton =?Windows-1251?B?zeX05eT85eIgwC7RLg==?= <gtheme@narod.ru>Tue, 17 Feb 2004 17:40:51 +0800
|
||||
Hello, maplab 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
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |