Request: [html] tag in legend templates

Vincent Schut schut at SARVISION.COM
Tue Jan 18 02:29:45 EST 2005


Daniel Morissette wrote:
> 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,

that's what I was thinking yesterday on my way home too :-)
I realized that, due to the way the template is processed, we needed to
specify the position where the inline html blocks should be put in the
ouput. You suggestion is exactly the solution I thought of. Should I
file a feature request bug for this in bugzilla?

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



More information about the mapserver-dev mailing list