<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
the templates are usually not very complex, but rather long due to
the large number of layers, here is a shortened example:<br>
<a href="https://mapcache.de/ex/legend_template.html">https://mapcache.de/ex/legend_template.html</a><br>
Sven
<div class="moz-signature">
<br>
<br>
</div>
<div class="moz-cite-prefix">Am 07.05.2020 um 16:30 schrieb Steve
Lime:<br>
</div>
<blockquote type="cite"
cite="mid:CAMrKZ9-PunxD5kc7OgwHe3j_nAXZhJhuFAKD4o__91mN7ynE4A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Query templates already support the concept of
includes:
<div><br>
</div>
<div> [include src="some other template"]</div>
<div><br>
</div>
<div>so I wonder if it might be possible to extend that
functionality to HTML legend processing. Do you have a
particularly complex example you could share with me?</div>
<div><br>
</div>
<div>--Steve</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, May 7, 2020 at 4:42 AM
Sven Schroeter <<a href="mailto:schroeter@netgis.de"
moz-do-not-send="true">schroeter@netgis.de</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi
all,<br>
<br>
i have been using html legend templates for the mapserver for
a very <br>
long time.<br>
With many layers such a template can become very long and
confusing.<br>
Is there a possibility to split such a template into several
files and <br>
e.g. include certain areas like in the mapfile?<br>
Maybe I could solve this with PHP Mapscript? Up to now I have
been <br>
using processLegendTemplate to output the HTML code.<br>
<br>
Thanks<br>
Sven<br>
<br>
<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org"
target="_blank" moz-do-not-send="true">mapserver-users@lists.osgeo.org</a><br>
<a
href="https://lists.osgeo.org/mailman/listinfo/mapserver-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote>
</div>
</blockquote>
<br>
</body>
</html>