A while back, there was a project to add JSON format to getlegendgraphic but I don't think it went anywhere. If this was revived, then you could look at using client-side templating for the legend. We have some interest in this area - looking a dynamic legends (especially for geology) where legend content depended on content of map. However, we need this to work with ArcGIS server too, so probably implementing that one layer further up.
From: Michael Sexton <michael.sex...@ga.gov.au> Sent: Tuesday, 8 February 2022 4:49 PM To: 'geoserver-users@lists.sourceforge.net' <geoserver-users@lists.sourceforge.net> Subject: [Geoserver-users] Legend templating in GeoServer [SEC=UNOFFICIAL] Note: External sender: Hi GeoServer community I was wondering whether anyone knew of any legend templating features in GeoServer, either in the core libraries or community plugins. I'm wondering if there was much like GetFeatureInfo templating, where you could design how you want your legends to look (margins, fonts, layout) in the server config. Or if one was wanting to write a plugin themselves, how they might get started. Thanks Michael Sexton Data Analyst | MEGIS Minerals Energy Groundwater | GEOSCIENCE AUSTRALIA ____________________________________________________________ Phone: +61 2 6249 9262 Fax: +61 2 6249 9999 Email: michael.sex...@ga.gov.au<mailto:michael.sex...@ga.gov.au> Web: www.ga.gov.au<http://www.ga.gov.au/> Cnr Jerrabomberra Avenue and Hindmarsh Drive Symonston ACT 2609 GPO Box 378 Canberra ACT 2601 Australia Applying geoscience to Australia's most important challenges Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) is intended only for the person or entity to which it is addressed. If you are not the intended recipient, then you have received this e-mail by mistake and any use, dissemination, forwarding, printing or copying of this e-mail and its file attachments is prohibited. The security of emails transmitted cannot be guaranteed; by forwarding or replying to this email, you acknowledge and accept these risks. Notice: This email and any attachments are confidential and may not be used, published or redistributed without the prior written consent of the Institute of Geological and Nuclear Sciences Limited (GNS Science). If received in error please destroy and immediately notify GNS Science. Do not copy or disclose the contents.
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users