[OpenLayers-Trac] [OpenLayers] #878: Add "layerswitched" event to Layer and Control.LayerSwitcher

OpenLayers trac at openlayers.org
Tue Sep 11 23:23:39 EDT 2007


#878: Add "layerswitched" event to Layer and Control.LayerSwitcher
-------------------------+--------------------------------------------------
  Reporter:  openlayers  |       Owner:  euzuro     
      Type:  feature     |      Status:  new        
  Priority:  minor       |   Milestone:  2.5 Release
 Component:  Layer       |     Version:  2.4        
Resolution:              |    Keywords:  review     
-------------------------+--------------------------------------------------
Comment (by crschmidt):

 * Add Layer Event
  * Remove noEvent from the code -- only used in LayerSwitcher, and no
 longer needed there
  * Add checkRedraw to LayerSwitcher -- called before redraw -- which
 returns whether a redraw is neccesary
  * Add LayerStates to LayerSwitcher for above. keeps track of visibility
 and name.

 Includes tests.

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


More information about the Trac mailing list