[OpenLayers-Trac] [OpenLayers] #1071: selectfeature via draggable box

OpenLayers trac at openlayers.org
Tue Jul 29 20:02:09 EDT 2008


#1071: selectfeature via draggable box
------------------------+---------------------------------------------------
  Reporter:  crschmidt  |       Owner:  tschaub    
      Type:  feature    |      Status:  reopened   
  Priority:  critical   |   Milestone:  2.7 Release
 Component:  Control    |     Version:  SVN        
Resolution:             |    Keywords:             
     State:  Review     |  
------------------------+---------------------------------------------------
Changes (by tschaub):

  * status:  closed => reopened
  * state:  Complete => Review
  * resolution:  fixed =>

Comment:

 Latest patch addresses a couple of issues:
  * Box handler previously called up with a pixel (instead of bounds) if
 drag displacement was less than 5 in either dimension.  With this patch,
 the box handler gets a tolerance property.  By default, tolerance is set
 to 5.  The change is that a pixel is substituted if the drag displacement
 is less than the tolerance in both dimensions.  This allows long skinny
 boxes.
  * The select feature control gets a boxTolerance property.  Used in
 conjunction with box true, the boxTolerance is passed as the tolerance of
 the box handler.  The default boxTolerance is -1.  This means that a
 bounds is always returned from the box handler.  If you want to have
 selection when dragging a big box but not when clicking, then you can
 construct a select feature control with some larger boxTolerance.
  * The select feature control only calls bounds.toGeometry once per
 bounds.

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


More information about the Trac mailing list