Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: change z-order of type1000 layers after creating them #16

Open
btgoodwin opened this issue Feb 8, 2018 · 3 comments
Open

Comments

@btgoodwin
Copy link

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).

@maihde
Copy link
Contributor

maihde commented May 18, 2018

@btgoodwin how does this API look:

interactiveTest('zOrder layer option', 'Is the red triangle over-top the green triangle with no blue showing?', function() {

If this looks good to you I will merge this onto the mainline.

@btgoodwin
Copy link
Author

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?

@maihde
Copy link
Contributor

maihde commented May 18, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants