[Users] How to correctly set up a Legend Panel

Luís de Sousa luis.a.de.sousa at gmail.com
Fri Jan 18 16:41:27 CET 2013


Hello everyone,

I'm trying to use a legend panel, initialising it the way you see
below. The panel is shown where it should in the page, but it only
shows the legend for base layers, in spite of the layerStore object
containing all the layers in the map. Am I missing some property? Or
is it something else?

Thank you,

Luís

{
   region: "east",
   title: "Legend",
   xtype: "gx_legendpanel",
   layerStore: layerStore,
   width: 150,
   collapsible: true,
   autoScroll: true,
   enableDD: true,
   padding: 5,
   rootVisible: false,
   lines: false,
}


More information about the Users mailing list