[Chameleon] Re: do not show layers in legend

anthony farrant anthony.k.farrant at gmail.com
Sun May 13 09:57:27 EDT 2007


 Hi Dejan,

 Yeah this works but it interferes afterwards with the Update widget who
 only displays the layers that ARE present in the legend.

 For example I'm using a raster set as map basis but on update (Update
 widget) these layers vanish. So there's a dependency somewhere in the
 Update widget code...

 Thx for your response,

 A.
>
> On 5/13/07, Dejan Gambin <dejan.gambin at pula.hr> wrote:
> > A have a similar situtation and it is working for me. So if I set:
> >
> > [if name=NO_SHOW  oper=isnull]
> > ...
> > ...
> > [/if]
> >
> > then the legend WILL BE shown (because the operand is null, ie doesn't exist
> > as metadata tag). It should work this way. Eventually try with upper case
> > but I don't think it is a problem.
> >
> > regards, dejan
> >
> > > -----Original Message-----
> > > From: chameleon-bounces at lists.maptools.org
> > > [mailto:chameleon-bounces at lists.maptools.org] On Behalf Of
> > > anthony farrant
> > > Sent: Saturday, May 12, 2007 10:09 PM
> > > To: chameleon at lists.maptools.org
> > > Subject: [Chameleon] Re: do not show layers in legend
> > >
> > > Unfortunately this doesn't work because the legend interferes
> > > somehow with the update function... God I'm going mad!
> > >
> > > On 5/12/07, anthony farrant <anthony.k.farrant at gmail.com> wrote:
> > > > I found a solution to this:
> > > >
> > > > I added a metadata tag to my layers that I do NOT want to
> > > show and did
> > > > a
> > > >
> > > > [if name=no_show oper=isnull]
> > > > [/if]
> > > >
> > > > in my legend template. Somehow the [if name=show oper=eq
> > > value=1][/if]
> > > > does not work in the legend template.
> > > >
> > > > Cheers!
> > > >
> > > >
> > > > On 5/12/07, anthony farrant <anthony.k.farrant at gmail.com> wrote:
> > > > > Me again. (I'm doing overhours)
> > > > >
> > > > > Does anybody know how to inhibit showing some layers in
> > > the legend?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > -A
> > > > >
> > > >
> > > _______________________________________________
> > > Chameleon mailing list
> > > Chameleon at lists.maptools.org
> > > http://lists.maptools.org/mailman/listinfo/chameleon
> > >
> >
> >
>


More information about the Chameleon mailing list