<div dir="ltr">Hello everyone,<div><br></div><div style>I'm trying to integrate a Legend panel into an accordion, with the following set up:</div><div style><br></div><div style><div> myLayerStore = new GeoExt.data.LayerStore({</div>
<div><span class="" style="white-space:pre">        </span> map: myMap,</div><div><span class="" style="white-space:pre">        </span> layers: myMap.layers</div><div> });</div><div> </div><div> myLegend = new Ext.Panel({ </div>
<div><span class="" style="white-space:pre">                </span>title: "Legend",</div><div><span class="" style="white-space:pre">                </span>xtype: "gx_legendpanel",</div><div><span class="" style="white-space:pre">                </span>layerStore: myLayerStore,</div>
<div><span class="" style="white-space:pre">                </span>collapsible: true,</div><div><span class="" style="white-space:pre">                </span>autoScroll: true,</div><div><span class="" style="white-space:pre">                </span>enableDD: true,</div>
<div><span class="" style="white-space:pre">                </span>padding: 5,</div><div><span class="" style="white-space:pre">                </span>rootVisible: false,</div><div><span class="" style="white-space:pre">                </span>lines: false</div><div>
});</div><div><br></div><div style>And then myLegend is included in the items array of the Accordion panel.</div><div style><br></div><div style>This way the Legend panel doesn't work, it doesn't send any requests to the server and remains blank. What is wrong in this set up?</div>
<div style><br></div><div style>Thank you,</div><div style><br></div><div style>Luís</div></div></div>