[Users] How to correctly set up a Legend Panel
Alexandre Dubé
adube at mapgears.com
Wed Jan 23 14:58:33 CET 2013
Hi,
Could you provide a snippet of code of one of your overlay layer
definition ?
Alexandre
On 13-01-23 08:38 AM, Luís de Sousa wrote:
> 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,
>> }
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list