<HTML defanghtml_xmlns="http://www.w3.org/TR/REC-html40" defanghtml_xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" defanghtml_xmlns:w="urn:schemas-microsoft-com:office:word" defanghtml_xmlns:o="urn:schemas-microsoft-com:office:office" defanghtml_xmlns:v="urn:schemas-microsoft-com:vml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
<STYLE> <!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV>Try something like:</DIV>
<DIV>&nbsp;</DIV>
<DIV>var style1 = new OpenLayers.style({strokeWidth:5, 'strokeColor': '#ff0000'});</DIV>
<DIV>polygon1 = new OpenLayers.Feature.Vector(lines, style:style1);</DIV>
<DIV><BR>regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert<BR><BR>&gt;&gt;&gt; JK Chen &lt;jk.chen@sdl.usu.edu&gt; 30/06/2011 9:27 a.m. &gt;&gt;&gt;<BR></DIV>
<DIV class=WordSection1>
<P class=MsoNormal>Hi,<O:P></O:P></P>
<P class=MsoNormal><O:P></O:P></P>
<P class=MsoNormal>I am trying to style individual feature with OpenLayers.Feature.Vector statement, as this: <O:P></O:P></P>
<P class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <O:P></O:P></P>
<P class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .<O:P></O:P></P>
<P class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lines = new OpenLayers.Geometry.LineString([p1,p2, p3, p4, p1]);<O:P></O:P></P>
<P class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; polygon1 = new OpenLayers.Feature.Vector(lines, {strokeWidth:5, 'strokeColor': '#ff0000'});<O:P></O:P></P>
<P class=MsoNormal><O:P></O:P></P>
<P class=MsoNormal>However, it's not working for me.<O:P></O:P></P>
<P class=MsoNormal><O:P></O:P></P>
<P class=MsoNormal>Is there anything missing? <O:P></O:P></P>
<P class=MsoNormal><O:P></O:P></P>
<P class=MsoNormal>Thanks.<O:P></O:P></P>
<P class=MsoNormal><O:P></O:P></P>
<P class=MsoNormal>JK<O:P></O:P></P></DIV><BR><BR><FONT style="BACKGROUND-COLOR: #ffffff">
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">Click <A href="https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==">here</A> to report this email as spam.</FONT></P></FONT><br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system.</FONT></P>

<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for Malware and Viruses by Websense Hosted Security.  </FONT><A href="http://www.websense.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>www.websense.com</FONT></A></P>
</body></HTML>