added 488 characters in body
Source Link
Breizh79
  • 71
  • 1
  • 4

Hi sorry I can't comment, but the method "bridge.customLayerOrder()" doesn't exist in QGis 3.x

How can I access the Layer Order Panel with pyqgis 3I've found maybe a substitute command:

bridge = iface.layerTreeCanvasBridge() 
bridge.rootGroup().customLayerOrder()

From https://qgis.org/api/classQgsLayerTree.html#aab7a55f2e61f0ff1dbea6ceb89e8b366:

The order in which layers will be rendered on the canvas. Will only be used if the property hasCustomLayerOrder is true. If you need the current layer order that is active, prefer using layerOrder().

Hope to be useful to others.x?

Thanks, RiccardoRiccardo

Hi sorry I can't comment, but the method "bridge.customLayerOrder()" doesn't exist in QGis 3.x

How can I access the Layer Order Panel with pyqgis 3.x?

Thanks, Riccardo

Hi sorry I can't comment, but the method "bridge.customLayerOrder()" doesn't exist in QGis 3.x

I've found maybe a substitute command:

bridge = iface.layerTreeCanvasBridge() 
bridge.rootGroup().customLayerOrder()

From https://qgis.org/api/classQgsLayerTree.html#aab7a55f2e61f0ff1dbea6ceb89e8b366:

The order in which layers will be rendered on the canvas. Will only be used if the property hasCustomLayerOrder is true. If you need the current layer order that is active, prefer using layerOrder().

Hope to be useful to others.

Riccardo

Source Link
Breizh79
  • 71
  • 1
  • 4

Hi sorry I can't comment, but the method "bridge.customLayerOrder()" doesn't exist in QGis 3.x

How can I access the Layer Order Panel with pyqgis 3.x?

Thanks, Riccardo