[fusion-trac] #167: check mapgroup in legend

Fusion trac_fusion at osgeo.org
Tue Nov 11 05:13:19 EST 2008


#167: check mapgroup in legend
-----------------------+----------------------------------------------------
   Reporter:  klement  |       Owner:  madair
       Type:  defect   |      Status:  new   
   Priority:  P2       |   Milestone:  2.0   
  Component:  Widgets  |     Version:  1.1.0 
   Severity:  Major    |    Keywords:        
External_id:           |       State:  New   
    Browser:  All      |          Os:  All   
-----------------------+----------------------------------------------------
 When check on a group in legend, all layers in group set visible.
 I suggest in mapserver.js showGroup method show only the checked layers:
 old:
 for (var i=0; i<group.layers.length; ++i) {
              group.layers[i].show();
         }
 new code:
 for (var i=0; i<group.layers.length; ++i) {
           if (group.layers[i].legend.checkBox.checked)
              group.layers[i].show();
         }

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/167>
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