[Qgis-developer] remove layer from QgsMapLayerRegistry
piko
piklas at gmail.com
Mon Dec 15 09:43:32 EST 2008
Folks
in one of my plugin , i create a layer, add it to canvas and then need to
remove it both from canvas and from layer registry, with this code:
QgsMapLayerRegistry.instance().removeMapLayer(self.sprayerLayer.getLayerID())
The layer is deleted from canvas but not from the layer registry.
Do you know why ?
Is there another way to update the registry ?
Thanks by advance
PIko
--
View this message in context: http://n2.nabble.com/remove-layer-from-QgsMapLayerRegistry-tp1658484p1658484.html
Sent from the qgis-developer mailing list archive at Nabble.com.
More information about the Qgis-developer
mailing list