Hi, If you specify one of the layers using the layers parameter in the getLegendGraphics query, you'll get the legend once.
Hope this helps Envoyé à partir d’Outlook<http://aka.ms/weboutlook> ________________________________ De : Emiliano Castañeda <casta1...@hotmail.com> Envoyé : 16 mai 2023 17:46 À : Geoserver-users@lists.sourceforge.net <Geoserver-users@lists.sourceforge.net> Objet : [Geoserver-users] Single style on layer groups Hi to all When configuring a layer group with several layers that have assigned the same style, I'm getting a legend graphic with all the layers and for each layer the mentioned style. I tried the different modes (single, opaque container, etc) but still getting the same results. Is there a possibility to assign/display only one style to a layer group on the legend graphic instead of each layer with its style? Thanks in advance Emiliano
_______________________________________________ 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