Hello.<br><br>I'm a new user of OpenLayers. Im trying to create a website in which a layer of OpenStreetMap is displayed. And when the user clicks on a point, I need to add a marker to that point. I have added the OSM layer and configured so that once a click occurs it returns an alert with the lat/lon, by following an example at <a href="http://openlayers.org/dev/examples/click-handler.html">OpenLayers Click Handler Example</a>. <br>
But I need to put the marker at the point where the click occurs. Tried many examples, but could not figure that out. <br>My current code snippet is here <a href="http://pastebin.com/m24d302f2">http://pastebin.com/m24d302f2</a><br>
<br>Please help.<br><br>Thank you.<br><br>-- <br>Sajjad Anwar<br><a href="http://sajjad.in">http://sajjad.in</a><br><br>