[Chameleon] hiding more than one layer in the legend
Jason Fournier
jfournier at dmsolutions.ca
Fri Dec 30 13:51:09 EST 2005
Marta,
For each layer that you do not want to show in the legend put something like the following metadata:
"no_show" "1"
In your legend template under the leg_layer_html you could do something like:
[leg_layer_html order=ascending opt_flag=14]
[if name=no_show oper=isnull]
<!-- CODE HERE -->
<!-- This will only show the layers that don't have no_show in their metadata -->
[/if]
[/leg_layer_html]
This should give you the desired result. You could also consult the docs at:
http://mapserver.gis.umn.edu/docs/howto/html_legend
or post the question to the MapServer User List where there are a significant number of users with experience in using HTML Legends.
Best Regards,
Jason
marta fuster wrote:
> Dear list,
>
> I'm trying to hide more than one layer from my legend. I've tried to put
> the layers that I want to hide in a special group, using [if] statements
> in the legend template and metadata tags in the Map file. The problem is
> that it seems to work but only with one of the layers in the group (not
> with the whole group as I'd like to). I'm a bit newbie and I can't find
> where is the problem, any ideas?
>
> thanks in advance
> and happy new year!
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
--
________________________
Jason Fournier
DM Solutions Group Inc.
jfournier at dmsolutions.ca
www.dmsolutions.ca
613.565.5056 x18
More information about the Chameleon
mailing list