Select to view content in your preferred language

ArcGIS Pro Contents does not have Collapse or Expand in the Context menu right click properties !

2002
4
11-05-2021 08:48 AM
Status: Under Consideration
Labels (1)
PROBERT68
Honored Contributor

PROBERT68_1-1636126852639.png

So when I am working on many orthophotos to add to my ArcGIS Pro to review, and what I find is there none to make it easier to do.

So when you create a Group Layer to add many images.  When you highlight (blue ones) and then right  click to open the context menu, there is no collapse or expand groups to turn it on.  The only thing I see is the feature is the  "Turn On". This is only when you tell ArcGIS Pro  to turn on all the images.

Please can you add them ?

Here is an example from Microsoft Outlook, It has these features and it is a life-saver when you have so many emails.

PROBERT68_0-1636126732082.png

 

4 Comments
curtvprice

Control-click expands and collapses all groups in a hierarchy.

ArcGIS Pro Keyboard Shortcuts

MatthewStull1

I will also 2nd this idea.  It was a handy tool in ArcMap (as I show in the screenshot below).  Thanks for posting it.

MatthewStull1_0-1687908105533.png

 

TanuHoque
Status changed to: Under Consideration
 
TanuHoque

just an FYI. As a workaround for now, you can add a button to the context menu on the Contents pane. Please see the help here: https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-DAML#menu-insert-a-new-button-to-the-map-con... for how to customize the map context menu

here is the code that needs to be in the code behind.

 

private void ExpandedEverything(Map map, bool expand)
{
  var layers = map?.GetLayersAsFlattenedList() ?? new List<Layer>();
  foreach (var layer in layers)  layer.SetExpanded(true);
}

QueuedTask.Run(()=> ExpandEverything(MapView.Active.Map, true));//expand

//QueuedTask.Run(()=> ExpandEverything(MapView.Active.Map, false));//collapse