[fusion-trac] #370: Legend does not clear oActiveLayer when clicked off

Fusion trac_fusion at osgeo.org
Mon Mar 15 10:37:20 EDT 2010


#370: Legend does not clear oActiveLayer when clicked off
--------------------------+-------------------------------------------------
   Reporter:  pdeschamps  |       Owner:  madair
       Type:  defect      |      Status:  new   
   Priority:  P2          |   Milestone:  Future
  Component:  Widgets     |     Version:  1.1.1 
   Severity:  Minor       |    Keywords:        
External_id:              |       State:  New   
    Browser:  All         |          Os:  All   
--------------------------+-------------------------------------------------
 It looks as though we are not catching the toggle state of a legend item.

 When you click on a layer in the legend and then click it again it should
 set this.getMap().oActiveLayer to null. It looks as though that it does
 not have a case for that. in legend.js

 {{{
         this.selection = new Jx.Selection({
             onSelect: function(item) {
                 var treeItem = item.retrieve('jxTreeItem');
                 var data = treeItem.options.data
                 if (data instanceof Fusion.Layers.Group) {
                     this.getMap().setActiveLayer(null);
                 } else {
                     this.getMap().setActiveLayer(data);
                 }
             }.bind(this)
         });
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/370>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list