Skip to main content
5 events
when toggle format what by license comment
May 27, 2012 at 2:07 comment added dakcarto On another note, the latest versions of QGIS (>= 1.8) allow the user to define a rendering order of layers separately from the order listed in the legend (very nice!). The legendInterface() and mapCanvas() methods return the layer order for each respectively.
May 27, 2012 at 2:00 comment added dakcarto Note that there is a difference in what is returned between this and the mapCanvas() technique Nathan mentions. The legendInterface() object will return all layers, even if they are not shown in the map canvas, while mapCanvas() returns only those shown on the canvas. Using mapCanvas() is a nice, quick way to get a reference to visible layers.
May 26, 2012 at 23:53 comment added spencerrecneps Thanks! That did the trick. I guess I'm too used to the ESRI world where legend is the object in the map layout and table of contents refers to the list of layers.
May 26, 2012 at 23:39 history edited dakcarto CC BY-SA 3.0
Typo
May 26, 2012 at 23:25 history answered dakcarto CC BY-SA 3.0