AnsweredAssumed Answered

LayerList - Layer Reorder with Dynamic Workspaces

Question asked by philojuan on Dec 15, 2016
Latest reply on Dec 15, 2016 by rscheitlin


I noticed that the LayerList widget does not allow to move layers even if the underlying map service has dynamic workspaces - allow per request modification enabled. 
Is there an easy way to fix this? I started poking around with the PopupMenuInfo.js class in the LayerList widget and noticed that "FeatureLayer" types do not have this option. So I duplicated the Widget and tried to add it in but it shows up as a disabled menu item. I did some further digging and noticed that the logic for this is true since Move Up and Move Down by design is only available for RootLayers not individual layers in a service. 


Any idea on the proper direction to take here? Has anyone done this before ? 


Thanks in advance,