Open cratcliff opened 3 years ago
This is not possible in the current version but sounds like a nice feature to have, for example, by providing the layer name as a "GorupLayerName/LayerName" - add to the roadmap.
As a workaround, you can use QGIS API to move the newly added layer to a group layer, something like https://gis.stackexchange.com/questions/329547/qgis-3-move-layer-to-group. This may require some checks to make sure the layer doesn't exist.
Is it possible to either specify a group layer name or return the QGIS layer when using
Map.addLayer()
so I can add it to a group layer? I would like to do this for both vector and raster layers.Thanks