Technicality
· 7TH OF JUNE, THE YEAR 2005CHAMELEON: LEGENDTEMPLATE ISSUES
Chameleon’s LegendTemplate widget has weird issues with groups. If you use groups and some of your layers aren’t in groups, Chameleon won’t display them after zooming or updating the map in any way. I was trying to use ungrouped layers to hide them from the legend. The solution from the list was to create a separate group and metadata for hidden layers and use [if] clauses in the legend template. Mapfile looks like this:
LAYER
NAME "Water"
GROUP "hidden"
METADATA
"legendvis" "hidden"
END
STATUS ON
DATA "/path/to/data"
TYPE POLYGON
CLASS
STYLE
COLOR 153 204 255
END
END
END
and now my legend template looks like this:
[leg_group_html order=ascending opt_flag=15]
[if name=legendvis oper=isnull]

NO COMMENTS YET