MapTools.org

[maplab-users] Color changing

Zak James zak-ms@hoppsan.org
Tue, 17 Feb 2004 09:21:55 -0500
This is a mapserver/mapscript question and you will get more help if 
you post to the mapserver-users list hosted at mapserver.gis.umn.edu

zak
--
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca


On Feb 17, 2004, at 4:40 AM, Anton wrote:

> 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
>
> _______________________________________________
> Maplab-users mailing list
> Maplab-users@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/maplab-users
>



This archive was generated by Pipermail.