[Users] LegendPanel strange behaviour (bug?)

stela anders stelaanders at gmail.com
Thu Jan 21 14:01:10 CET 2010


Hello guys !!!

I have a mapserver WMS layer with 3 sublayers...

Case 1 : All 3 sublayers are checked OFF (checked: false, in config js)
The legend is ok (showing nothing)

Turning sublayer1 ON  : Legends ok
Turning sublayer1 OFF : Legends ok (showing nothing)
Turning sublayer1 ON : Legends ok
Turning sublayer2 ON : Legends dont change, just sublayer1 is on legend
Turning sublayer3 ON : Legends dont change, just sublayer1 is on legend
Turning sublayer1 OFF : Legends dont change, just sublayer1 is on legend
Turning sublayer2 OFF : Legends dont change, just sublayer1 is on legend
Turning sublayer3 OFF : Legends ok (showing nothing)

And thats it, It only shows 1 sublayer and legend...

Case 2 : All 3 sublayers are checked ON (checked: true, in config js)
The legend is ok (showing all 3 sublayers)

Turning sublayer1 OFF : Legends dont change, showing all 3 sublayers
Turning sublayer2 OFF : Legends dont change, showing all 3 sublayers
Turning sublayer3 OFF : Legends ok (showing nothing)
 (Now its the same CASE 1)
...

My layer definition:

  OpenLayers.Layer.WMS("Test",
                mapfile, {
                    "LAYERS": ['Layer1','Layer2','Layer3'],
                    transparent: true,
                    format: "image/png"
                }, {
                    isBaseLayer: false,
                    buffer: 0,
                    visibility: true
                })


Any help?

Thanks

Stella
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100121/74e54685/attachment.htm 


More information about the Users mailing list