2

Is it possible to remove a layer from the layers panel and the map canvas without removing it from memory. e.g if i have a vector layer named vlayer, and add it to the map with QgsMapLayerRegistry.instance().addMapLayer(vlayer), and then later remove it from the map, but still want to operate on vlayer. I have tryed QgsMapLayerRegistry.instance().removeMapLayer(vlayer.id()), but then it seems that the layer is removed from vlayer as well

0 Answers0