<div dir="ltr"><div>Hi,<br>  <br>Go to <a href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/draw-feature.html">http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/draw-feature.html</a> and open your js debugger<br>The code below makes the job for example<br><br>//Because a closure, I get the vector point layer indirectly<br>var pointLayer = map.layers[1];<br><br>//Declare the new feature<br>var newFeature = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(5, 5),<br>  {<br>    'key1': 'abcdef',<br>    'key2': 'ghijkl'<br>  }<br>)<br><br>pointLayer.addFeatures([newFeature]);<br></div>// Enjoy (tested in Firefox and Google Chrome)<br><div><br>// This code above comes mainly from this old tutorial (good enough to get started with OpenLayers 2.x version)<br><a href="http://docs.openlayers.org/library/introduction.html#adding-a-vector-marker-to-the-map">http://docs.openlayers.org/library/introduction.html#adding-a-vector-marker-to-the-map</a><br>// You might consider more recent docs too<br><a href="http://workshops.boundlessgeo.com/openlayers-intro/">http://workshops.boundlessgeo.com/openlayers-intro/</a><br><br>As a reminder, before asking, consider searching. OpenLayers v 2.x is really documented everywhere and since a long time.<br></div><br><div>Cheers<br><br></div><div>Thomas</div></div>