I have got a WMS layer from an instance of Gemini VA WMS Server I want to add to my Leaflet map, version 0.7.7. For that I need to break down my WMS link to fit the options like this example:
var wmsLayer = L.tileLayer.wms('http://demo.opengeo.org/geoserver/ows?', {
layers: 'nasa:bluemarble'
}).addTo(map);
This is the link I am not sure how to use. In QGIS the first line is ID 0 and name "RootLayer". It contain 8 layers and all of them make up the layer I want to add.
The link I have provided is not live but it follows the same structure to the link I got that is working in QGIS.
EDIT: As suggested from comments I tried this:
var wmsLayer = L.tileLayer.wms('http://localhost/MapServer/Standard_SDO.wms', {
}).addTo(map);
That throws me an error: Uncaught TypeError: Cannot read property 'wms' of undefined.
It seem that it does not like the dot. Do you know any work around?
This is what I have tried so far but it did not work:
var wmsLayer = L.tileLayer.wms('http://localhost/MapServer/ows?', {
layers: 'Standard_SDO.wms'
}).addTo(map);
var wmsLayer = L.tileLayer.wms(http://localhost/MapServer/Standard_SDO.wms?,
http://localhost/MapServer/Standard_SDO.wms?service=WMS&request=GetCapabilities&
is ithttp://localhost/MapServer/Standard_SDO.wms/ows?service=WMS&request=GetCapabilities&
or is it something else?