<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px">
<DIV>Hi Dave</DIV>
<DIV> </DIV>
<DIV>Here is a snippet of code that I use:</DIV>
<DIV> </DIV>
<DIV>controls = {<BR> select: new OpenLayers.Control.SelectFeature(crops, {callbacks: {'over':feature_info}}),<BR> dpolygon: new OpenLayers.Control.DrawFeature(crops,OpenLayers.Handler.Polygon),<BR> modify: new OpenLayers.Control.ModifyFeature(crops),<BR> delf: new OpenLayers.Control.SelectFeature(crops, {onSelect: function(feature) {crops.destroyFeatures([feature])}})<BR> };<BR> for(var key in controls) {<BR> map.addControl(controls[key]);<BR> }<BR></DIV>
<DIV>Cheers,</DIV>
<DIV> </DIV>
<DIV>Robert Sanson</DIV>
<DIV><BR>>>> Dave Potts <dave.potts@pinan.co.uk> 6/03/2009 12:49 p.m. >>><BR>Its possible to create a feature on map using routines such as <BR>DrawFeature, but how do you delete a feature once its been created?<BR><BR><BR>Dave.<BR><BR></DIV><br><br><table bgcolor=white style="color:black"><tr><td><br>------------------------------------------------------------------<br>
The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message.<br>
------------------------------------------------------------------</td></tr></table><br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for malware by SurfControl plc. </FONT><A href="http://www.surfcontrol.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>www.surfcontrol.com</FONT></A></P>
</body></HTML>