You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior: the creation of the layer (e.g., overlay_pipe) establishes the z-order of the layer when drawing each layer.
What we would like to do is re-order layers in the event a signal on layer 1 needs to temporarily be displayed ahead of layer 0 (0 and 1 being indices into the layer list).
The text was updated successfully, but these errors were encountered:
Thanks, I like that. @tplumley, FYI as we rebase against the new 2.0 master.
I haven't gone through the code, but what would happen if I set a z-order of 3 and then pushed several layers (such that 0, 1, 2, ...)? Would that next layer end up at zOrder 4, skipping 3 since that one was manually assigned?
Currently you would end up with:
Layer 1 - zOrder 3
Layer 2 - zOrder 1
Layer 3 - zOrder 2
Layer 4 - zOrder 3
But your inquiry brings up a good point. I'm going to change that so that
new layers are always added on top of all existing layers (i.e. new layers
zOrder = max(zOrder)+1) unless a zOrder was explicitly provided. I'll
update that tonight and push new changes to this branch.
~Michael
Current behavior: the creation of the layer (e.g.,
overlay_pipe
) establishes the z-order of the layer when drawing each layer.What we would like to do is re-order layers in the event a signal on layer 1 needs to temporarily be displayed ahead of layer 0 (0 and 1 being indices into the layer list).
The text was updated successfully, but these errors were encountered: