[OpenLayers-Trac] [OpenLayers] #3544: Handler.Polygon interferes with selectedFeatures when adding a hole

OpenLayers trac-20090302 at openlayers.org
Sat Oct 8 02:34:14 EDT 2011


#3544: Handler.Polygon interferes with selectedFeatures when adding a hole
-----------------------------------+----------------------------------------
 Reporter:  kylecronan             |       Owner:  tschaub     
     Type:  bug                    |      Status:  new         
 Priority:  minor                  |   Milestone:  2.12 Release
Component:  Handler.Polygon        |     Version:  2.11        
 Keywords:  hole selected polygon  |       State:              
-----------------------------------+----------------------------------------
 Ordinarily the polygon handler has no effect on selected features when
 used by the drawFeature control. However, the way it implements adding a
 hole to an existing polygon is by removing its feature from the control's
 layer, and it doesn't check selection. As a result, if you add a hole to a
 selected polygon feature it will remain highlighted but no longer be in
 its layer's selectedFeatures.

 To reproduce:
 1. create a map with a vector layer, polygon drawFeature control (with
 holeModifier) and selectFeature control
 2. draw a polygon
 3. switch to select control and select the polygon
 4. switch back to draw control and draw a hole inside the polygon

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


More information about the Trac mailing list