[OpenLayers-Trac] Re: [OpenLayers] #3199: Handler.RegularPolygon: Strange behavior

OpenLayers trac-20090302 at openlayers.org
Sun May 8 18:13:33 EDT 2011


#3199: Handler.RegularPolygon: Strange behavior
-------------------------------------+--------------------------------------
  Reporter:  jorix                   |       Owner:  fredj       
      Type:  feature                 |      Status:  new         
  Priority:  minor                   |   Milestone:  2.12 Release
 Component:  Handler.RegularPolygon  |     Version:  SVN         
Resolution:                          |    Keywords:              
     State:  Review                  |  
-------------------------------------+--------------------------------------
Changes (by jorix):

  * state:  Needs More Work => Review
  * type:  bug => feature


Comment:

 '''NOTE''': This ticket only analyzes the problem "'''2 Try'''" to a
 solution of "'''1 Try'''" see #3193

 This issue is more complex than it seemed to me. For example when the
 handler is used by SLDSelect control this behavior is acceptable, even
 preferable (see examples/SLDSelect.html) So this is not strictly a bug.

 This would lead to consider two behaviors when "mouseout", to call "done"
 or "cancel" callbacks. In the patch attachment/3199.2.patch I have
 incorporated these two behaviors and the proposed code by __fredj__
 changed to avoid a call to "done" callback after "cancel" (Handler.Drag
 can to call "done" callback on "mouseout").

 The patch also includes tests and a adjustment in the example.

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


More information about the Trac mailing list