Request: [html] tag in legend templates

Daniel Morissette dmorissette at DMSOLUTIONS.CA
Mon Jan 17 11:57:14 EST 2005


Vincent Schut wrote:
> My proposal is the following: could we have [html] [/html] tags to
> construct arbitrary html tag blocks? Behaviour for these tags would be
> similar as that of the header and footer blocks, except that they are
> placed in the ouput where they were encountered in the input. E.g. if I
> have this legend template:
>
> [html]
> <div id=classblock>
> [/html]
> [leg_class_html]
>        <div id=class>
>                <img src=[leg_icon width=25 height=10]> [leg_class_name]
>        </div>
> [/leg_class_html]
> [html]
> </div>
> [/html]
>

Vincent,

I think that just using [html] blocks like this would make it impossible
to predictably add surrounding html for combinations of group, layer and
class blocks for the same legend.

Perhaps we could try to find a way to extend the work done in bug 1032
(http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1032) where Steve
added new [leg_header_html] and [leg_footer_html] blocks. Maybe new
[leg_layer_header_html], [leg_group_header_html] and
[leg_class_header_html] and corresponding footer elements?

Daniel
--
------------------------------------------------------------
  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------



More information about the mapserver-dev mailing list