Hello guys !!!<br><br>I have a mapserver WMS layer with 3 sublayers...<br><br>Case 1 : All 3 sublayers are checked OFF (checked: false, in config js)<br>The legend is ok (showing nothing)<br><br>Turning sublayer1 ON : Legends ok<br>
Turning sublayer1 OFF : Legends ok (showing nothing)<br>Turning sublayer1 ON : Legends ok<br>Turning sublayer2 ON : Legends dont change, just sublayer1 is on legend<br>Turning sublayer3 ON : Legends dont change, just sublayer1 is on legend<br>
Turning sublayer1 OFF : Legends dont change, just sublayer1 is on legend<br>Turning sublayer2 OFF : Legends dont change, just sublayer1 is on legend<br>Turning sublayer3 OFF : Legends ok (showing nothing)<br><br>And thats it, It only shows 1 sublayer and legend...<br>
<br>Case 2 : All 3 sublayers are checked ON (checked: true, in config js)<br>The legend is ok (showing all 3 sublayers)<br><br>Turning sublayer1 OFF : Legends dont change, showing all 3 sublayers<br>
Turning sublayer2 OFF : Legends dont change, showing all 3 sublayers<br>
Turning sublayer3 OFF : Legends ok (showing nothing)<br> (Now its the same CASE 1)<br>...<br><br>My layer definition:<br><br> OpenLayers.Layer.WMS("Test",<br> mapfile, { <br> "LAYERS": ['Layer1','Layer2','Layer3'],<br>
transparent: true, <br> format: "image/png"<br> }, {<br> isBaseLayer: false,<br> buffer: 0, <br>
visibility: true<br> })<br><br><br>Any help?<br><br>Thanks<br><br>Stella<br><br><br><br>