Thanks to both, Bart and Tobias!<div>It turns out that both method worked. I was using feature.style, as Bart suggested, but it seems that all the features were referencing the same style object, </div><div>so now I clone the style object each time I request the current style and it's working like I wanted. And parameterizing also did the trick.</div>
<div>Thanks again for the quick replies,</div><div>Claudio.</div><div><div><br><br><div class="gmail_quote">2012/9/28 Bart van den Eijnden <span dir="ltr"><<a href="mailto:bartvde@opengeo.org" target="_blank">bartvde@opengeo.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">You can associate the style with the feature, i.e. set feature.style.<div><br></div><div>
Otherwise, show us some of your relevant code.</div><div><br></div><div>Best regards,</div><div>Bart</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span><div><span class="HOEnZb"><font color="#888888"><div>

<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div>
-- <br>Bart van den Eijnden<br>OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org</a><br>Expert service straight from the developers.</div><div><br></div></span><br>

</div>
<br></font></span><div><div><div class="h5"><div>On Sep 28, 2012, at 2:45 PM, Claudio V. <<a href="mailto:claudio.carvalho@lemaf.ufla.br" target="_blank">claudio.carvalho@lemaf.ufla.br</a>> wrote:</div><br></div></div>
<blockquote type="cite"><div><div class="h5">Hello, I'm working in an application that allows the user to draw over the map and has a side panel with controls for the color, opacity and stroke width. I have a single vector layer where all the drawn features are added.<div>

<div>However, I want each feature to use the currently selected style. That happens at first, but, as soon as the map is moved/zoomed all the features are updated to use the current style.</div></div><div>Is there a way to style features individually in a single vector layer?</div>

<div>Thanks in advance,</div><div>    Cláudio V.</div></div></div><div class="im">
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</div></blockquote></div><br></div></div></blockquote></div><br></div></div>