0

I have WMS Layer in GeoServer, I've made it following the walk through tutorial in https://www.e-education.psu.edu/geog585/node/701

I'm confused on how to connect my WMS to leaflet.js.

1

You can add it through L.tilelayer.WMS method of Leaflet

var wmsLayer = L.tileLayer.wms('https://demo.boundlessgeo.com/geoserver/ows?', {
    layers: 'ne:ne'
}).addTo(map);

Here are more details that you can follow

https://leafletjs.com/examples/wms/wms.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.