[QGIS-Developer] Python QGIS 3 and the list of all visible layer in the map

Tom Chadwin tom.chadwin at nnpa.org.uk
Tue Sep 18 06:42:28 PDT 2018


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


More information about the QGIS-Developer mailing list