[Qgis-developer] QgsMapCanvas.freeze and QgsInterface.AddRasterLayer

Luca Manganelli luca76 at gmail.com
Sat Jan 18 09:08:52 PST 2014


Hi,

I noticed that if I do:

 1. QgsMapCanvas.freeze ( True )  - to stop drawing the mapcanvas
 2.  call QgsInterface.AddRasterLayer() two times to add two distinct WMS
layers
 3. QgsMapCanvas.freeze ( False )  - to enable drawing the mapcanvas
 4. QgsMapCanvas.refresh - to redraw the map

I noticed that AddRasterLayer completely ignores the freeze state of
QgsMapCanvas forcing it to draw the map on each call of AddRasterLayer.

Is there any way to avoid it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140118/57bda8ac/attachment.html>


More information about the Qgis-developer mailing list