WMS Layers #3027
sylvain258
started this conversation in
General
WMS Layers
#3027
Replies: 1 comment
-
L.something is probably a leaflet example so it's not relevant to this library. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'd like to add a WMS layer from qgisServer to my web map application. I am looking for the equivalent of that for Mapbox/Maplibre...
I consulted API documentation but I don't understand my layer doesn't work.
var wmsLayer = L.tileLayer.wms('myurl.qgs', { layers: 'garonne', transparent: 'true', format: 'image/png', maxZoom: 21, opacity: 1 }).addTo(map);
I try this :
map.addSource('wms-test-source', { 'type': 'raster', url: 'https://linktomyurl.qgs' });
map.addLayer( { 'id': 'wms-test-layer', 'type': 'raster', 'source': 'wms-test-source', 'paint': {} } );
I don't know if type is correct. It seems I have to declare my layer contained inside, but I don't know where.
Thank you for your answers,
Sylvain
Beta Was this translation helpful? Give feedback.
All reactions