Bear with me, QgsMapCanvas.setCurrentLayer() was enough :)<div><br></div><div>giovanni<br><br><div class="gmail_quote">2012/11/7 G. Allegri <span dir="ltr"><<a href="mailto:giohappy@gmail.com" target="_blank">giohappy@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">AFAICS there's no method to toggle a layer in legend through the legend interface (at leat in 1.8 API)<div>Is there some way to do it?</div>
<div><br></div><div>thanks,</div><div>giovanni</div>
</blockquote></div><br></div>