<div dir="ltr">Hi<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 2, 2014 at 10:36 PM, Martin Dobias <span dir="ltr"><<a href="mailto:wonder.sk@gmail.com" target="_blank">wonder.sk@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Hugo<br>
<div class=""><br>
On Mon, Jun 2, 2014 at 10:13 PM, Hugo Mercier <<a href="mailto:hugo.mercier@oslandia.com">hugo.mercier@oslandia.com</a>> wrote:<br>
> Hi Martin,<br>
><br>
> Le 21/05/2014 19:11, Martin Dobias a écrit :<br>
>> Hi everyone<br>
>><br>
>> I have just merged the first part of the legend refactoring work to<br>
>> master [1]. It does not really bring any new features for the end<br>
>> user, the changes are mainly under the hood. Things should ideally<br>
>> work as before, if not then probably it is a bug.<br>
>><br>
><br>
> Thanks for all the great work.<br>
><br>
> When adding a new layer, the behaviour used to be that the new layer was<br>
> placed on top of the active layer. It is not the case anymore if I am<br>
> correct.<br>
<br>
</div>Works for me exactly as expected - new layer is placed on top of the<br>
active layer.<br>
<br>
<div class=""><br>
> When passing a list of layers in a certain order to<br>
> QgsMapCanvas::setLayerSet(), the obtained order seems random (from<br>
> Python). Is it wanted ? (not sure if it was already the case before your<br>
> changes)<br>
<br>
</div>I am not sure if I understand what you mean.... order obtained from<br>
where? from map canvas?<br>
<div class=""><br></div></blockquote><div><br></div><div>Ah on this topic I dont know if we mentioned it in Vienna when you were gathering requirements, but one thing I *often* get asked by users is why when adding new layers (multiple at once) QGIS does not add them in 'natural z-order' with polygons below then lines in the middle, then points above. Is this something you could do? I believe sorting should only apply to the added layers (so adding the sorted layer above the current layer rather than above the last layer of their geometry type). Though no doubt somebody will think just the opposite....:-)</div>

<div><br></div><div>Regards</div><div><br></div><div>Tim</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
<br>
> Is there a way to modify the order of layers in the legend (and in the<br>
> rendering) via the Python API ?<br>
<br>
</div>Not yet, I am about to add python bindings very soon (tomorrow probably).<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888">Martin<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">

Tim Sutton - QGIS Project Steering Committee Member<br>==============================================<br>Please do not email me off-list with technical<br>support questions. Using the lists will gain<br>more exposure for your issues and the knowledge<br>

surrounding your issue will be shared with all.<br><br>Irc: timlinux on #qgis at <a href="http://freenode.net" target="_blank">freenode.net</a><br>==============================================</div>
</div></div>