<!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?&nbsp;&nbsp; </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>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;$point = 
ms_newPointObj();<BR>&nbsp;&nbsp;$point-&gt;setXY($x,$y);&nbsp;</DIV>
<DIV>&nbsp;&nbsp;$line = 
ms_newLineObj();&nbsp;<BR>&nbsp;&nbsp;$line-&gt;add($point);&nbsp;&nbsp;</DIV>
<DIV>&nbsp;&nbsp;$feature = 
ms_newShapeObj(0);&nbsp;<BR>&nbsp;&nbsp;$feature-&gt;set("text"," 
");&nbsp;//<BR>&nbsp;&nbsp;$feature-&gt;add($line);&nbsp;&nbsp;<BR>&nbsp;&nbsp;$layer 

$map-&gt;getLayerByName($layer_name);&nbsp;<BR>&nbsp;&nbsp;$layer-&gt;addFeature($feature);&nbsp; 
</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;switch($code){<BR>&nbsp;&nbsp;&nbsp;case 
3:<BR>&nbsp;&nbsp;&nbsp;&nbsp;$color[0] = 
48;<BR>&nbsp;&nbsp;&nbsp;&nbsp;$color[1] = 
255;<BR>&nbsp;&nbsp;&nbsp;&nbsp;$color[2] = 
219;<BR>&nbsp;&nbsp;&nbsp;&nbsp;$class = 
ms_newClassObj($layer);<BR>&nbsp;&nbsp;&nbsp;&nbsp;$style = 
ms_newStyleObj($class);&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;$class-&gt;setExpression('code = 
3');<BR>&nbsp;&nbsp;&nbsp;&nbsp;break;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;case 
4:<BR>&nbsp;&nbsp;&nbsp;&nbsp;$color[0] = 
255;<BR>&nbsp;&nbsp;&nbsp;&nbsp;$color[1] = 
48;<BR>&nbsp;&nbsp;&nbsp;&nbsp;$color[2] = 84;<BR>&nbsp;&nbsp;&nbsp;&nbsp;$class 
= ms_newClassObj($layer);<BR>&nbsp;&nbsp;&nbsp;&nbsp;$style = 
ms_newStyleObj($class<BR>&nbsp;&nbsp;&nbsp;&nbsp;$class-&gt;setExpression('id = 
4');<BR>&nbsp;&nbsp;&nbsp;&nbsp;break;</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; ....</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Alexandre.</FONT></DIV></BODY></HTML>