[OpenLayers-Trac] [OpenLayers] #3579: The insertXY method of the DrawFeature Control does not work for the first point in the sketch

OpenLayers trac-20090302 at openlayers.org
Wed Nov 16 15:28:12 EST 2011


#3579: The insertXY method of the DrawFeature Control does not work for the first
point in the sketch
---------------------------------+------------------------------------------
 Reporter:  vishcious            |       Owner:              
     Type:  bug                  |      Status:  new         
 Priority:  minor                |   Milestone:  2.12 Release
Component:  Control.DrawFeature  |     Version:  2.11        
 Keywords:                       |       State:              
---------------------------------+------------------------------------------
 When calling insertXY on the DrawFeature control when the sketch hasn't
 started, nothing happens and the point does not get added. The control
 requires the user to sketch atleast one point before insertXY begins
 working. This is because the 'line' property of the handler is initially
 set to null and the logic is skipped when 'handler.line' is null in the
 insertXY method.

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


More information about the Trac mailing list