<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi list,</div><div>I have a problem with my plugin OpeNoise with Qgis 2.4</div><div>In the plugin I change the symbology of a layer with these final lines in a script:</div><div><br></div><div><span style="font-size: 12pt; font-family: 'courier new', courier, monaco, monospace, sans-serif;">layer.setRendererV2(myRenderer)</span></div><div><p style="margin: 0px;" data-mce-style="margin: 0px;"><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">iface.legendInterface().refreshLayerSymbology(layer)</span></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">iface.mapCanvas().refresh()</span></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">layer.reload()</span></p></div><div><br></div><div>While this works up to qgis 2.2, with qgis 2.4 it doesn't work.</div><div>It changes the symbology in the map legend but not in the map view!</div><div>If I refresh the map view, also with a simply zoom, also the map view turns ok!</div><div><br></div><div>How can I do?</div><div><br></div><div>Thanks</div><div>Stefano</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><span name="x"></span>Stefano Masera<br>Arpa Piemonte - SC06 Dipartimento Provinciale di Torino<br>Via Pio VII, 9 - 10135 Torino<br>Tel.: 011 19680349; Fax: 011 19681441<br>www.arpa.piemonte.it<br><div><br></div>************************************************************************<br>Riservatezza/Confidentiality<br><div><br></div>In ottemperanza al D.Lgs. n. 196 del 30/06/03 in materia di protezione<br>dei dati personali, le informazioni contenute in questo messaggio sono<br>strettamente riservate ed esclusivamente indirizzate al destinatario<br>indicato (oppure alla persona responsabile di rimetterlo al<br>destinatario). Vogliate tener presente che qualsiasi uso, riproduzione o<br>divulgazione di questo messaggio sono vietati. Nel caso in aveste<br>ricevuto questo messaggio per errore, vogliate cortesemente avvertire il<br>mittente e distruggere il presente messaggio.<br><div><br></div>According to italian law D.lgs. 196/2003 concerning privacy, if you are<br>not the addressee (or responsible for delivery of the message to such<br>person) you are hereby notified that any disclosure, reproduction,<br>distribution or other dissemination or use of this communication is<br>strictly prohibited. If you have received this message in error, please<br>destroy it and notify us by email.<span name="x"></span><br></div><div><br></div></div></body></html>