Arnd Wippermann wrote: > I would appreciate, if the Control.ModifyFeature would enhanced to delete > features.
This was originally the intent. Chris suggested it would be too easy to delete a feature accidentally when you were trying to hover over a vertex. Providing an option on the control seems like a sensible solution. Tim > > If you use OL for digitizing, you have a problem to get rid of a feature. > > Mit freundlichen Grüssen > > Arnd Wippermann > http://gis.ibbeck.de/ginfo/ > > > > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im > Auftrag von Eric Lemoine > Gesendet: Donnerstag, 15. Mai 2008 09:15 > An: Andreas Hocevar > Cc: OpenLayers Users > Betreff: Re: [OpenLayers-Users] Is it possible to delete a point using > theModifyFeature control? > > On Wed, May 14, 2008 at 10:29 PM, Andreas Hocevar > <[EMAIL PROTECTED]> wrote: >> Pierre GIRAUD wrote: >>> I think Eric is wrong on that point. >>> By hovering a vertex, you can delete it pressing the Del button. >>> Tricky, isn't it ? >>> >> I would have thought that it works like that, because it is promised >> in the API doc of Control.ModifyFeature, but it does not: > > Indeed, the API doc isn't correct. > > We cannot delete polygons et lines with the modify feature control, so why > would we allow deleting points? Maybe you think that the control should > allow deleting features? > > >> /** >> * Method: handleKeypress >> * Called by the feature handler on keypress. This is used to delete >> * vertices and point features. If the <deleteCode> property is > set, >> * vertices and points will be deleted when a feature is selected >> * for modification and the mouse is over a vertex. >> * >> * Parameters: >> * {Integer} Key code corresponding to the keypress event. >> */ >> >> Also, handleKeypress is only triggered when the point is not selected. > > I don't get that. Could you please elaborate? > > Thanks, > -- > Eric > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > !DSPAM:4033,482f3de7152132085621377! > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
