Hi, just get the styles from the GetCapabilities in a dropdown list and specify the selected one in the "&STYLES=" parameter in the GetMap URL.
Hope this helps. Envoyé à partir d’Outlook<http://aka.ms/weboutlook> ________________________________ De : kaoutar hraka <hrk.kaw...@gmail.com> Envoyé : 13 octobre 2021 18:16 À : geoserver-users@lists.sourceforge.net <geoserver-users@lists.sourceforge.net> Objet : [Geoserver-users] Add multilple styles SLD to one wms layer I have one layer in geoserver witch i applied 3 sld, in preview layer of geoserver i can change styles of layer from default one to thers styles. now i added wms layer to leaflet map i want to switch styles of layer in box control like when we change layers from one to others
_______________________________________________ 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