This might help you out:

"<img 
src="+lyrurl+"SERVICE=wms&REQUEST=GetLegendGraphic&FORMAT=image/jpeg&WIDTH=20&HEIGHT=20&LEGEND_OPTIONS=forceLabels:on&LAYER="+lyrname+"&SCALE="+scale+"><br>"

Cheers,
Vera

On Thu, Sep 10, 2020 at 6:23 AM Endi Soares <[email protected]> wrote:

> Hi
> I already have the layers on the WEBGIS page, the new challenge is to
> present the styles, present them in legend
>
> I'm a little lost with that
>
> Best Regards
>
> Em qui., 10 de set. de 2020 às 03:14, Vera Green <[email protected]>
> escreveu:
>
>> 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
>>>
>>
>
> --
> 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

Reply via email to