Timeline for QGIS3 Python setLayers for map item in layout
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 31, 2019 at 7:10 | comment | added | Fran Raga | QgsMapLayerRegistry. Its functionality has been moved to QgsProject. | |
May 31, 2019 at 2:39 | answer | added | BrendanP | timeline score: 1 | |
May 30, 2019 at 22:59 | comment | added | BrendanP | It appears that QgsMapLayerREgistry however is no longer for QGIS3. | |
May 30, 2019 at 22:55 | comment | added | BrendanP | Yes. I think I was not clear enough with my question. Defining the layer is where I am having problems. I've not done this before and the methods I've tried have failed. My last attempt was to use: layer =QgsVectorLayer('path', 'name', 'ogr') QgsMapLayerRegistry.instance().addMapLayer(layer) | |
May 30, 2019 at 8:01 | comment | added | Fran Raga |
The error is clear, map_layer1 is not defined, add where you define it. If you want set all layer in this map need this map1.setLayers(layers)
|
|
May 30, 2019 at 5:28 | history | edited | TomazicM | CC BY-SA 4.0 |
Removed thanks.
|
May 30, 2019 at 2:30 | review | First posts | |||
May 30, 2019 at 5:28 | |||||
May 30, 2019 at 2:27 | history | asked | BrendanP | CC BY-SA 4.0 |