Hi, <br><br>Basic question here?!? I've added several layers to my map. And Ive attempted to create a simple Legend Panel. The problem: If I load the map with the layers visible, everything works fine. But If I load the map with the layers turned off, when turning on a layer, the legend image does not display. (The layer name appears, but no icon image). Any Hints?<br>
<br>Thank You!!<br>Neomi<br><br>Relevant parts of code:<br><br>// add overlay<br>var fixedLayer3 = new OpenLayers.Layer.WMS("Photos",<br> wmsurl, {<br> layers: "ex:photo",<br>
transparent: true,<br> format: 'image/png'<br> }, {<br> //tileSize: new OpenLayers.Size(256,256),<br> singleTile: true, ratio: 1,<br>
isBaseLayer: false,<br> displayInLayerSwitcher: true,<br> visibility: false<br> }); <br> map.addLayer(fixedLayer3);<br>
<br>//add legend panel<br> var legendPanel = new GeoExt.LegendPanel({<br> title: 'Legend',<br> autoScroll: true,<br> bodyStyle: 'padding:5px',<br> width: 150,<br> region: 'west'<br>
});<br><br><br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>