[fusion-trac] #39: Legend layer control does not work on Mapserver layers with status DEFAULT

Fusion trac_fusion at osgeo.org
Thu Dec 4 10:40:15 EST 2008


#39: Legend layer control does not work on Mapserver layers with status DEFAULT
-----------------------+----------------------------------------------------
 Reporter:  wbronsema  |         Owner:  pdeschamps
     Type:  defect     |        Status:  closed    
 Priority:  P2         |     Milestone:  Future    
Component:  MapServer  |       Version:  1.0.4     
 Severity:  Minor      |    Resolution:  fixed     
 Keywords:             |   External_id:            
    State:  New        |       Browser:  All       
       Os:  All        |  
-----------------------+----------------------------------------------------
Changes (by pdeschamps):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 added flag in LoadMap.php "$layerObj->statusdefault" passed it into
 layer.js .statusDefault and thus added to the legend.js widget in the
 renderItemCheckBox func.

 {{{
 if(this.options.statusIsDefault){
             this.checkBox.checked = true;
             this.checkBox.disabled = true;
             this.checkBox.readOnly = true;
         }
 }}}

 Now the item appears checked and it is "disabled" (greyed out)

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/39#comment:4>
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