[OpenLayers-Trac] Re: [OpenLayers] #3016: ModifyFeature - "del" key press outside vertice should delete the feature

OpenLayers trac-20090302 at openlayers.org
Mon Jan 31 11:21:29 EST 2011


#3016: ModifyFeature - "del" key press outside vertice should delete the feature
-----------------------------------+----------------------------------------
 Reporter:  adube                  |       Owner:  tschaub     
     Type:  feature                |      Status:  new         
 Priority:  minor                  |   Milestone:  2.11 Release
Component:  Control.ModifyFeature  |     Version:  2.10        
 Keywords:  del, delete, key       |       State:  Review      
-----------------------------------+----------------------------------------
Changes (by adube):

  * state:  => Review


Comment:

 The above patch allow the deletion of the currently selected feature on
 "del" or "d" key pressed.

  * If the feature has no "fid", it's simply unselected and destroyed.
  * If not, it's put to "DELETE" state and a "featuremodified" event is
 triggered.  The user must then listen to the event and commit the changes
 himself.  If the event returned "true", then the feature is also destroyed
 from the layer.

 I modified an old live sample to show this new feature.  It's running with
 OpenLayers trunk r11065 + the above patch applied.

 http://dev4g.mapgears.com/gmap-fs/

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3016#comment:2>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list