[OpenLayers-Trac] [OpenLayers] #3596: Cannot add holes to polygons using ModifyFeature

OpenLayers trac-20090302 at openlayers.org
Fri Dec 9 06:50:25 EST 2011


#3596: Cannot add holes to polygons using ModifyFeature
-----------------------------------+----------------------------------------
 Reporter:  fradal                 |       Owner:  tschaub
     Type:  feature                |      Status:  new    
 Priority:  minor                  |   Milestone:         
Component:  Control.ModifyFeature  |     Version:         
 Keywords:  hole, donut            |       State:         
-----------------------------------+----------------------------------------
 Adding an hole to a polygon using the ModifyFeature control is not
 possible at the moment.

 In my opinion, this feature needs the following changes:
 - In Control.SelectFeature there shuold be a "beforefeatureunselected"
 event.
 - The beforefeatureunselected event can be used by Control.ModifyFeature
 to stop the unselection and to start the hole drawing.
 - Control.ModifyFeature should use the Handler.Polygon to draw holes (and
 maybe to add components to MultiPolygon features).
 - Control.ModifyFeature needs an handlerOptions property (as DrawFeature)
 to pass the holeModifier option.

 I'm not sure how to implement the third point, but, if you can confirm me
 that this approach is correct, I can try to create a patch.

 Thank you

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3596>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list