Select to view content in your preferred language

Allow limiting layer list reordering to the current group

110
1
2 weeks ago
Status: Under Consideration
Labels (2)
SparkyT19
Emerging Contributor

In the layer list, it would be useful to be able to reorder layers using drag and drop, Move Up, Move Down, etc., but only within the layers' current group.    

I'm using the arcgis-layer-list component from version 4.33 of the SDK.  I have use cases where we are adding multiple group layers, each of which contains multiple feature layers.  Users might want to reorder feature layers in order to change the drawing order on the map, but it's also important that we keep them logically grouped.  I would like to limit the movability (dragging and dropping, reordering, etc.) of the list items to within the current group only.  If I have groups A, B, and C, each of which contain layers 1, 2, and 3, I want to be able to reorder A-1, A-2, A-3 within group A, but not move them out of group A, either to another group, or to the top level of the layer list.  Similarly, I want to be able to reorder the group layers, A, B, and C, at the top level of the layer list (so maybe they are in C, A, B order), but not drag any group into one of the other groups.  If we had future scenarios where we have nested group layers, I would want the same rules to apply - if group layer A contained group layers AA, AB, and AC, each of which contained one or more feature layers, then AA, AB, and AC should be reorderable, but within their parent group A only.

1 Comment
Sage_Wall
Status changed to: Under Consideration