I have a plugin with my own map canvas and I create a button in order to remove all the layers visible or opened in map canvas.I use this lines:
QgsMapLayerRegistry.instance().removeAllMapLayers()self.canvas.refresh() And it works but I noted that the layers are not in canvas but exist even that, I think they are in memory. How can I remove permanently the layers?
Thanks.Lia Duarte
أكثر...
QgsMapLayerRegistry.instance().removeAllMapLayers()self.canvas.refresh() And it works but I noted that the layers are not in canvas but exist even that, I think they are in memory. How can I remove permanently the layers?
Thanks.Lia Duarte
أكثر...