Hi,<br>I'am not an expert but you could do something like this.<br><br>//in your init function<br>//define the style of your layer<br>var myStyles = new OpenLayers.StyleMap({<br> "default": new OpenLayers.Style({<br>
fillColor: "#ffcc66",<br> strokeColor: "#ff9933",<br> strokeWidth: 2<br> })<br>});<br><br>//Create a layer to pur your points in<br>var points = new OpenLayers.Layer.Vector(<br> 'Points', {styleMap: myStyles}<br>
);<br>.........<br><br>Create a new function..<br>Assuming the input elements are called lon and lat<br>function createPoint()<br>{<br> //create your point with your values<br> newpoint = new OpenLayers.Feature.Vector(<br>
new OpenLayers.Geometry.Point(<br> (document.forms.yourform.lon.value, document.forms.yourform.lat.value)<br> )<br> );<br> //add point to layer<br> points.addFeatures(features);<br>}<br>
<br><br><br>