Thanks Tom!
for those who need, this is a working snippet for processing alghorithm:
layermap = iface.mapCanvas().layers()
layers = []
# add only visible layers
layTreeRoot = QgsProject.instance().layerTreeRoot()
for layer in layermap:
if
Hi Enrico
You can use the Layer Tree API. Something like:
project.layerTreeRoot().findLayer(layer.id()).isVisible()
Tom
-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
Hi list,
I'm working on my plugin (IOGeopaparazzi) in order to make it available
also for QGIS 3.
I have troubles converting this function
"iface.legendInterface().isLayerVisible(layer)" that checks the layer
visibility in a loop of all loaded layers in the map.
What I want to do is to