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

Add support for zIndex when customizing layers. #230

Closed
fschmenger opened this issue Jul 13, 2021 · 0 comments · Fixed by #249
Closed

Add support for zIndex when customizing layers. #230

fschmenger opened this issue Jul 13, 2021 · 0 comments · Fixed by #249

Comments

@fschmenger
Copy link
Collaborator

When testing the background layer picker, I realized that we're currently relying on order of layer declaration to define which layers should appear in foreground. This is somewhat inconvenient when 'baseLayers' are declared at the wrong end of the 'mapLayers' list.

  • I suggest to generally support a 'zIndex' configuration property for 'mapLayers'.
  • There should be some implicit 'zIndex' assigned when the property is missing, such that 'baseLayers' will get a lower zIndex than foreground layers. What numbers should we use here?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant