[OpenLayers-Users] Is it possible to delete a point using theModifyFeature control?

Arnd Wippermann arnd.wippermann at web.de
Sat May 17 16:19:42 EDT 2008


I would appreciate, if the Control.ModifyFeature would enhanced to delete
features. 

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: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] 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
<andreas.hocevar at gmail.com> 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
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list