Hajk icon indicating copy to clipboard operation
Hajk copied to clipboard

Allow users to change the z-index of visible layers

Open jacobwod opened this issue 2 years ago • 5 comments

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 avatar May 19 '22 08:05 jacobwod

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

jesade-vbg avatar May 19 '22 09:05 jesade-vbg

Hallbergs avatar May 20 '22 05:05 Hallbergs

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 avatar Jun 02 '22 07:06 jacobwod

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

jacobwod avatar Jun 02 '22 12:06 jacobwod

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

image

jacobwod avatar Jun 02 '22 12:06 jacobwod