Geoserver is just another WMS provider from the point of view of leaflet. I 
would consider using one of WMS enhancement plugins, esp
Leaflet.wms and see examples eg
http://heigeo.github.io/leaflet.wms/examples/

Legend presentation is extremely application-dependent. However, it is just a 
case of deciding where an image is going to go and setting the img src 
attribute with javascript to a wms GetLegendGraphic call. For scale-dependent 
legends, set a handler to L.map.zoomlevelschange and modify the  &Scale  
parameter in the img src appropriately.



From: Endi Soares <endy.soare...@gmail.com>
Sent: Thursday, 10 September 2020 11:07
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] About the Geoserver data in leaflet

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 SoaresGeógrafo
m:(+238) 5809479
a:Praia, Cabo Verdee:
esoares.bvc.2...@gmail.com<mailto:esoares.bvc.2...@gmail.com> e: 
endy.soare...@gmail.com<mailto:endy.soare...@gmail.com>

[Image removed by sender.]<https://www.linkedin.com/in/endi-soares-081ab7105/>
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

Reply via email to