[Qgis-developer] (no subject)
godofredo contreras
frdcn at hotmail.com
Mon Jul 2 16:07:31 EDT 2007
Hi: I´m trying to add and remove layers from a plugin written in python I use this code to remove the layer: layer=self.iface2.activeLayer()QgsMapLayerRegistry.instance().removeMapLayer(layer.getLayerID()); those lines remove the layer from mapCanvas but they don't remove the layer from legend.Is there a method to remove the layer from mapCanvas and mapLegend simultaneosly? Best regardsGodofredo Contreras
_________________________________________________________________
Hotmail to go? Get your Hotmail, news, sports and much more! Check out the New MSN Mobile!
http://mobile.msn.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20070702/3717da4e/attachment.html
More information about the Qgis-developer
mailing list