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

Allow users to change the z-index of visible layers #1086

Closed
jacobwod opened this issue May 19, 2022 · 5 comments
Closed

Allow users to change the z-index of visible layers #1086

jacobwod opened this issue May 19, 2022 · 5 comments
Assignees
Labels
idea module:client/core Core functionality (not a plugin)
Milestone

Comments

@jacobwod
Copy link
Member

Currently the z-index of layers in a map is controlled once for each map by admins through a setting in Admin UI.

However, it is not always possible to predict the best z-index for layers and the number of combinations is huge.

One possibility is to add another tab in the LayerSwitcher, called "Drawing order" or something similar. That tab would display all currently visible layers as a draggable list (or with up and down arrows – the exact UI implementation is to be discussed).

@jacobwod jacobwod added module:client/core Core functionality (not a plugin) idea labels May 19, 2022
@jacobwod jacobwod added this to the 3.x milestone May 19, 2022
@jesade-vbg
Copy link
Contributor

jesade-vbg commented May 19, 2022

Good and interresting idea! It could also add the possibility to remove a specific visible layer. I sometimes find it really hard to find a already visible layer to turn it off. I usually end up using "Hide all active layers".

Maybe the tab could be called "Active Layers" or "Visible layers", with the ability to both change order and visibility/remove.

I'm just thinking out loud

@Hallbergs
Copy link
Member

@jacobwod
Copy link
Member Author

jacobwod commented Jun 2, 2022

First incarnation ready. I have some more ideas, such as toggling the visibility of active layers and controlling the opacity directly from the draw order view. Also, the zIndex value will be hidden (this is just a beta).

Skärmavbild 2022-06-02 kl  09 21 14

@jacobwod
Copy link
Member Author

jacobwod commented Jun 2, 2022

Further improvements:
Skärmavbild 2022-06-02 kl  14 50 21

@jacobwod
Copy link
Member Author

jacobwod commented Jun 2, 2022

Ah, even better: let's make use of the recently added possibility to set custom icons for each layer!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea module:client/core Core functionality (not a plugin)
Projects
None yet
Development

No branches or pull requests

3 participants