[OpenLayers-Trac] [OpenLayers] #3497: Once a feature is unselected no features can ever be selected again

OpenLayers trac-20090302 at openlayers.org
Mon Sep 12 18:51:59 EDT 2011


#3497: Once a feature is unselected no features can ever be selected again
-----------------------------------+----------------------------------------
 Reporter:  hlbrewing              |       Owner:  tschaub     
     Type:  feature                |      Status:  new         
 Priority:  major                  |   Milestone:  2.12 Release
Component:  Control.SelectFeature  |     Version:  2.10        
 Keywords:                         |       State:              
-----------------------------------+----------------------------------------
 If you select a feature, then click on an empty map area, you can't ever
 select a feature again.

 I found a fix by changing
 OpenLayers.Handler.Feature.mouseup from
 mouseup: function (evt) {
     this.up = evt.xy;
     return this.handle(evt);
 },

 to
 mouseup: function (evt) {
     this.up = evt.xy;
     var result = this.handle(evt) ? !this.stopUp : true;
     this.down = this.up = null;
     return result;
 },

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


More information about the Trac mailing list