<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1555" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Can anyone help me? </FONT></DIV>
<DIV><FONT face=Arial size=2>It should color diferent points according to the
different codes but itīs always black points in the map..</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks in advance.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> $point =
ms_newPointObj();<BR> $point->setXY($x,$y); </DIV>
<DIV> $line =
ms_newLineObj(); <BR> $line->add($point); </DIV>
<DIV> $feature =
ms_newShapeObj(0); <BR> $feature->set("text","
"); //<BR> $feature->add($line); <BR> $layer
=
$map->getLayerByName($layer_name); <BR> $layer->addFeature($feature);
</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> switch($code){<BR> case
3:<BR> $color[0] =
48;<BR> $color[1] =
255;<BR> $color[2] =
219;<BR> $class =
ms_newClassObj($layer);<BR> $style =
ms_newStyleObj($class); </DIV>
<DIV> $class->setExpression('code =
3');<BR> break;</DIV>
<DIV><FONT face=Arial size=2> case
4:<BR> $color[0] =
255;<BR> $color[1] =
48;<BR> $color[2] = 84;<BR> $class
= ms_newClassObj($layer);<BR> $style =
ms_newStyleObj($class<BR> $class->setExpression('id =
4');<BR> break;</FONT></DIV>
<DIV><FONT face=Arial size=2> ....</FONT></DIV>
<DIV><FONT face=Arial size=2> }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Alexandre.</FONT></DIV></BODY></HTML>