[OpenLayers-Users] Is it possible to delete a point using the
ModifyFeature control?
Andreas Hocevar
andreas.hocevar at gmail.com
Wed May 14 16:29:53 EDT 2008
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:
/**
* 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.
Is this behaviour considered bug or feature?
Regards,
Andreas.
More information about the Users
mailing list