Steve Lime wrote:
>
> Folks: It seems that if a class does not have a NAME set then it won't
> show in the legend, make sense since that's how image legends work (yes,
> there are other options, but in). However the [leg_layer_html] block
> will still be output for that layer. Seems counter intuitive to me. I
> would expect that if there are no classes to show then you wouldn't
> want the layer header stuff either. Or am I just missing someting. I
> imagine I can work around it with metadata but it feels like I shouldn't
> have to.
>
Good question... I think sometimes there are good reasons to show the layer
block even if there are no classes. You can think of WMS or raster imagery
layers for instance. However there should be a mechanism to more easily disable
the leg_layer_html block when no classes are present (likely using the opt_flag
parameter).