[Users] Possible to exclude a layer from the legendpanel?

Eric Lemoine eric.lemoine at camptocamp.com
Wed Oct 13 17:08:48 CEST 2010


On Wed, Oct 13, 2010 at 5:01 PM, Eoin Mac Aoidh <eoinyp at yahoo.com> wrote:
>
> Hi list,
> I was wondering, is it possible to exclude a layer from the legendPanel?
> I would still like it added to my Ext.tree.TreePanel though.
> This may seem odd, but I have good reason:
> I am adding filtered layers to the map which have the same symbology as existing layers in the map. Everytime I add a filtered layer to the map, redundant symbology automatically is added to the legendPanel (it is already there).
> The legend would be much less cluttered and would avoid repetition if I could exclude a layer form being added to the LegendPanel.
> Any help appreciated.

if the layer record's "hideInLegend" data field is set to true there
will be no associated item in the legend, though it should be in the
layer tree


--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com


More information about the Users mailing list