ua-snap / mapventure

Frontend for maps built with GeoServer
2 stars 0 forks source link

Layer visibility toggle order seems to override the order of the layer menu #426

Open cstephen opened 7 years ago

cstephen commented 7 years ago

Load up the RCP map and click the button to make "Land cover, 2010" visible, then click the button to make "2010s Mean Annual Temperature, RCP 6.0" visible. This places the "2010s Mean..." layer overtop the "Land Cover..." layer. I expected the "Land Cover..." layer to be the top-most layer on the map since it's at the top of the layer menu.

Then try toggling the "Land Cover..." layer to be hidden then visible again and suddenly it becomes the top-most layer on the map.

It seems the order in which layer visibility is toggled overrides our intended "top-most layer in the menu is the top-most layer on the map" feature.

brucecrevensten commented 7 years ago

There's an older stray ticket for this (possibly closed), and we've had some occasional discussion around this; let's figure out how we'd like to handle it.

What makes this not quite trivial is that dynamically reordering the list of layers could get a little bit messy/strange for the user. "Why did that move?" Perhaps we just should do a quick implementation and see if it's heading in the right direction?