Select to view content in your preferred language

Allow sorting layer list items without changing draw order

46
0
yesterday
Status: Open
Labels (3)
fdeters
Frequent Contributor

I have found discussion on this topic in couple of other threads (Permanently change the order in layer list widget , Choosing my own ordering of the layer options in a LayerList... ), but I'd like to bring it up here again as a concrete idea/request:

I've heard from users several times that it would be handy for them to be able to sort the layer list alphabetically. As it stands, there's no way to do this without a custom layer list—changing the list order changes the draw order, and vice versa. In my experience, users who are not GIS professionals don't think about draw order most of the time, and would prefer to be able to skim the list quickly to find a layer rather than use it to inspect the stacking order.

I believe that providing custom sorting options in `arcgis-layer-list` separate from drawing order would open up many new opportunities for presenting layers to users in ways that work for them. And it would solve a concrete user request for my team on more than one project.

So, my request is this: Allow sorting layer list items without changing draw order.

 

Notes

  • I recognize that this is a non-trivial change to make, and would require decoupling other layer list features from the draw order.
    • I personally don't need this to be compatible with drag-and-drop reordering.
  • A predicate/sort function API similar to the filtering API currently available in the layer list seems like a good solution to me.