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

Layer manager - control initial layer ordering #572

Open
perrygeo opened this issue Dec 11, 2012 · 0 comments
Open

Layer manager - control initial layer ordering #572

perrygeo opened this issue Dec 11, 2012 · 0 comments

Comments

@perrygeo
Copy link
Contributor

The default behavior for the layer manager is to float each newly activated layer to the top of the "Active" list. This may not always be the desired behavior

Minimum requirements

Have a boolean flag "base_layer" which would force that layer to be added to the end/bottom of the layer list

Ideally

Have an float field "layer_order" that would determine what index to insert itself into the layer list.

  • 0.0 would mean always go to the bottom (still "above" the actual OL base layer though)
  • 100.0 would mean always go to the top.
  • Any number 0 < x <100 would be scaled from 1 to n-2 (layer 0 and layer n-1 are reserved) and the layer would be be inserted at that index.
@ghost ghost assigned perrygeo Dec 11, 2012
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

1 participant