Geolicious / qgis2leaf

A QGIS plugin to create a working leaflet based webmap from it
127 stars 30 forks source link

WMS basemaps #162

Open tomchadwin opened 9 years ago

tomchadwin commented 9 years ago

We need to be able to set WMS layers as basemaps - assuming Leaflet supports this. To achieve this, we might need another variable in _layerlist.py to indicate whether the layer is tile or WMS.

So, first question, does Leaflet support WMS basemaps?

mtravis commented 9 years ago

Most certainly

http://leafletjs.com/reference.html#tilelayer-wms

Plus I've tested leaflet myself with many different WMS layers

tomchadwin commented 9 years ago

Thanks, Matt. Sorry, think that was a bit of a stupid question, as the WMS feature I've just built used this. I'm getting confused about what basemaps, tile layers, and so on, actually are, in the contexts of QGIS, qgis2leaf, and Leaflet.

Do we need this feature? Or is it fine just to add WMSes to QGIS, and have them output from there?

tomchadwin commented 9 years ago

OK, am I understanding this now? From the Leaflet perspective, is the only difference between basemaps and other layers how you add them to the layer control (and that basemaps unsurprisingly stack below other layers)? If so, this feature request still stands - WMS basemaps are required.

mtravis commented 9 years ago

Is it possible to add wms basemaps to the layer list (or create a new one specifically for them). Is it worth the effort? On 5 Dec 2014 14:49, "Tom Chadwin" notifications@github.com wrote:

OK, am I understanding this now? From the Leaflet perspective, is the only difference between basemaps and other layers how you add them to the layer control (and that basemaps unsurprisingly stack below other layers)? If so, this feature request still stands - WMS basemaps are required.

— Reply to this email directly or view it on GitHub https://github.com/Geolicious/qgis2leaf/issues/162#issuecomment-65799142 .