[Chameleon] Layer ordering in legend
Gambin Dejan
Dejan.Gambin at pula.hr
Mon Nov 6 02:41:59 EST 2006
Of course, here are the parts of the code:
legend_template:
...
[leg_layer_html order_metadata=legend_order opt_flag=14]
...
mapfile:
METADATA
...
"LEGEND_ORDER" "2"
...
END # Metadata
I have tried all the possible combinations (with/without uppercase
letters, with/without quotation marks...). Nothing seems to work. The
only place I have found the reference to legend_order in Chameleon was
in LegendTemplate.widget.php where it was set for reverse ordering of
layers. I have tried to comment it but nothing happened..
regards, dejan
> -----Original Message-----
> From: Julien-Samuel Lacroix [mailto:jlacroix at mapgears.com]
> Sent: Sunday, November 05, 2006 11:07 PM
> To: Gambin Dejan
> Cc: chameleon at lists.maptools.org
> Subject: Re: [Chameleon] Layer ordering in legend
>
> Hi,
> It's the way it should be working. Can you post the legend
> template and a mapfile snipet? There's probably a typo or something.
>
> Julien
>
> Gambin Dejan wrote:
> > Hi,
> >
> > Can someone tell me if there is a bug in mapserver or I am doing
> > something wrong. I am trying to use legend_order metadata parameter
> > and order_metadata tag in legend template but my layers
> always appear
> > in order they are entered in the mapfile. How can I set the layer
> > order in legend?
> >
> > thanks
> >
> > regards, dejan
> >
> > _______________________________________________
> > Chameleon mailing list
> > Chameleon at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/chameleon
>
> --
> Julien-Samuel Lacroix
> Mapgears
> http://www.mapgears.com/
>
More information about the Chameleon
mailing list