[Mapserver-users] [leg_layer_html] block and classes...
Daniel Morissette
morissette at dmsolutions.ca
Wed Jun 25 10:21:02 PDT 2003
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... 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). I've filed this in bugzilla and
will try to do something about this later this week when I get back to
MapServer bugs:
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=347
Daniel
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
More information about the MapServer-users
mailing list