<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=640104817-27052008><FONT face=Arial
color=#0000ff size=2>Thanks Oscar,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=640104817-27052008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=640104817-27052008><FONT face=Arial
color=#0000ff size=2>That's right. I will update my code</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=640104817-27052008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=640104817-27052008><FONT face=Arial
color=#0000ff size=2><!-- Converted from text/plain format -->
<P><FONT size=2>Mit freundlichen Grüssen<BR><BR>Arnd Wippermann<BR><A
href="http://gis.ibbeck.de/ginfo/">http://gis.ibbeck.de/ginfo/</A><BR><BR></FONT></P></FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> oscar.fonts.lists@gmail.com
[mailto:oscar.fonts.lists@gmail.com] <BR><B>Gesendet:</B> Dienstag, 27. Mai 2008
08:53<BR><B>An:</B> Tim Schaub<BR><B>Cc:</B> Arnd Wippermann;
users@openlayers.org<BR><B>Betreff:</B> Re: [OpenLayers-Users] Is it possible to
delete a point using theModifyFeature control?<BR></FONT><BR></DIV>
<DIV></DIV><BR>2008/5/19 Tim Schaub <<A
href="mailto:tschaub@opengeo.org">tschaub@opengeo.org</A>>:<BR>
<DIV class=gmail_quote>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV class=Ih2E3d>Arnd Wippermann wrote:<BR>> I would appreciate, if the
Control.ModifyFeature would enhanced to delete<BR>>
features.<BR><BR></DIV>This was originally the intent. Chris suggested
it would be too easy to<BR>delete a feature accidentally when you were trying
to hover over a<BR>vertex. Providing an option on the control seems like
a sensible solution.<BR></BLOCKQUOTE></DIV><BR><BR>You could show a confirm
dialog:<BR><BR> handleKeypress: function(code)
{<BR> // check for delete
key<BR> if(this.feature &&
OpenLayers.Util.indexOf(this.deleteCodes, code) != -1)
{<BR> var
vertex =
this.dragControl.feature;<BR>
if(vertex && [..])
{<BR>
// ...<BR> }
else { // Not over a
vertex<BR>
if(confirm("Do you want to delete the selected
feature?")){<BR>
var f =
this.feature;<BR>
this.unselectFeature(this);<BR>
this.layer.removeFeatures([f]);<BR>
}<BR>
}<BR> }<BR>
},<BR><BR>Oscar.<BR></BODY></HTML>