[Mapserver-users] error addColor
Jaime Mejía
jomejia at main-task.com
Thu Jul 3 17:34:28 PDT 2003
Hello list,
I want to dinamically create a layer with several classes in it. I've
searched the documentation and the mail list, and following the hints,
I've wrote the following code lines:
$layer_query=ms_newLayerObj($map);
$layer_query->set("data",$shpFname_query);
$layer_query->set("name","query_results");
$layer_query->set("status",1);
$layer_query->set("type",2);
$layer_query->set("labelitem","nombre");
$layer_query->set("classitem","nombre");
$class_query = ms_newClassObj($layer_query);
$class_query->set("name","Resultado
consulta");
$class_query->set("status",1);
$class_query->set("color",$map->addColor(255, 0, 0));
But in the last line, mapservers sends the following error message:
*Fatal error*: Call to undefined function: addcolor() in
*/usr/local/apache/htdocs/sig_curaduria/admin/index.phtml* on line
*250*
In the mapscript reference there is no method addColor.
Any hints?
Thanks a lot,
Jaime
More information about the MapServer-users
mailing list