gee-community / qgis-earthengine-plugin

Integrates Google Earth Engine and QGIS using Python API
http://qgis-ee-plugin.appspot.com
MIT License
454 stars 116 forks source link

Add layer to group #101

Open cratcliff opened 3 years ago

cratcliff commented 3 years ago

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

gena commented 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.