Senario, i have a lon-lat value and i want to draw a point on that value, i had tried the following code to draw point;<br><br>function createPoint() {<br> //create your point with your values<br> newpoint = new OpenLayers.DFeature.Vector(<br>
new OpenLayers.Geometry.Point(<br> (document.getElementById('longval').value, document.getElementById('latval').value)<br> )<br> );<br> //add point to layer<br> vector.addFeatures(features);<br>
}<br><br><br><br>the error is "features", what is the error and how can i solve this problem.<br><br><br>