In my experience figuring out this plugin is the way to go. You can get the legend through getFeatureInfo.
https://github.com/heigeo/leaflet.wms On Wed., Sep. 9, 2020, 5:11 p.m. Endi Soares, <[email protected]> wrote: > Hi, > > I want to consume the Geoserver data in the leaflet, someone has an > example index.html where I can see the procedures. > If possible with presentation of the legend. > > Best regards > -- > Endi Soares*Geógrafo * > m:(+238) 5809479 > a:Praia, Cabo Verdee: > [email protected] e: [email protected] > > <https://www.linkedin.com/in/endi-soares-081ab7105/> > _______________________________________________ > 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 > > > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users >
_______________________________________________ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
