Hi all, <br><br>This question has been asked by Boris on <i>Wed Feb 17 06:37:36 EST 2010</i>. The answer is very simple but it can be helpful for OpenLayers newbies like me. <br><br>The constructor of OpenLayers.Feature.Vector allows to define it's attributes with the second argument. Please look at OL's documentation at <a href="http://dev.openlayers.org/docs/files/OpenLayers/Feature/Vector-js.html#OpenLayers.Feature.Vector.OpenLayers.Feature.Vector">http://dev.openlayers.org/docs/files/OpenLayers/Feature/Vector-js.html#OpenLayers.Feature.Vector.OpenLayers.Feature.Vector</a> . <br>
<br>There is an example at <a href="http://gis.stackexchange.com/questions/10204/programmatically-creating-a-vector-feature-in-openlayers">http://gis.stackexchange.com/questions/10204/programmatically-creating-a-vector-feature-in-openlayers</a> .<br>
             <br>Best Regards,<br>Yasemin<br><br>