Re: [mapserver-users] HTML Legends with MapServer

2020-05-07 Thread Sven Schroeter
the templates are usually not very complex, but rather long due to the 
large number of layers, here is a shortened example:

https://mapcache.de/ex/legend_template.html
Sven


Am 07.05.2020 um 16:30 schrieb Steve Lime:

Query templates already support the concept of includes:

  [include src="some other template"]

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?


--Steve

On Thu, May 7, 2020 at 4:42 AM Sven Schroeter > wrote:


Hi all,

i have been using html legend templates for the mapserver for a very
long time.
With many layers such a template can become very long and confusing.
Is there a possibility to split such a template into several files
and
e.g. include certain areas like in the mapfile?
Maybe I could solve this with PHP Mapscript?  Up to now I have been
using processLegendTemplate to output the HTML code.

Thanks
Sven



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org

https://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] HTML Legends with MapServer

2020-05-07 Thread Steve Lime
Query templates already support the concept of includes:

  [include src="some other template"]

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?

--Steve

On Thu, May 7, 2020 at 4:42 AM Sven Schroeter  wrote:

> Hi all,
>
> i have been using html legend templates for the mapserver for a very
> long time.
> With many layers such a template can become very long and confusing.
> Is there a possibility to split such a template into several files and
> e.g. include certain areas like in the mapfile?
> Maybe I could solve this with PHP Mapscript?  Up to now I have been
> using processLegendTemplate to output the HTML code.
>
> Thanks
> Sven
>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] HTML Legends with MapServer

2020-05-07 Thread Sven Schroeter

Hi all,

i have been using html legend templates for the mapserver for a very 
long time.

With many layers such a template can become very long and confusing.
Is there a possibility to split such a template into several files and 
e.g. include certain areas like in the mapfile?
Maybe I could solve this with PHP Mapscript?  Up to now I have been 
using processLegendTemplate to output the HTML code.


Thanks
Sven



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users