[Users] How to correctly set up a Legend Panel
Luís de Sousa
luis.a.de.sousa at gmail.com
Wed Jan 23 14:38:49 CET 2013
Hello again, I'm still struggling with this subject.
I'm now debugging the LegendPanel code, trying to understand why the
overlay layers are not being included in the legend. The problem is
that I can't find the object/method that re-renders the legend when a
layer is switched on. Could someone point me where? That would already
be helpful.
Thank you,
Luís
On 18 January 2013 16:41, Luís de Sousa <luis.a.de.sousa at gmail.com> wrote:
> 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