<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I noticed that if I do:<br><br> 1. QgsMapCanvas.freeze ( True ) - to stop drawing the mapcanvas<br> 2. call QgsInterface.AddRasterLayer() two times to add two distinct WMS layers<br>
3. QgsMapCanvas.freeze ( False ) - to enable drawing the mapcanvas<br></div> 4. QgsMapCanvas.refresh - to redraw the map<br><br></div>I noticed that AddRasterLayer completely ignores the freeze state of QgsMapCanvas forcing it to draw the map on each call of AddRasterLayer.<br>
<br></div>Is there any way to avoid it?<br>
</div>