The ToggleLayers add-in for ArcGIS Pro allows users to quickly toggle the visibility of up to five layers using dedicated buttons or customizable keyboard shortcuts. Users can configure which layers to control via a settings menu, and these settings persist between sessions.
https://github.com/JonathanMagson/ToggleLayers/blob/main/ToggleLayers.esriAddinX
- Double-click the
.esriAddInXfile to install it. - Follow the prompts in the ArcGIS Pro Add-in Manager.
- The Toggle Layers tab should appear in the ribbon.
- In the Toggle Layers tab of the Add-in ribbon, click Layer Settings.
- This opens the Layer Settings Dockpane, where you can enter the layer names (as they appear in contents) of up to five layers.
- Click one of the Toggle Layer buttons (1–5) to show or hide the corresponding layer.
To quickly toggle layers using hotkeys, configure keyboard shortcuts in ArcGIS Pro:
- Go to
Project > Options > Customize the Ribbon > Keyboard Shortcuts - Click "Add New Shortcut"
- Search for the Toggle Button IDs:
- Search for "1" and assign a desired shortcut (e.g.,
Ctrl+1). - Repeat for "2", "3", "4", and "5" to assign hotkeys for each toggle button.
- Search for "1" and assign a desired shortcut (e.g.,
- Click OK to save your shortcuts.
Now, pressing the assigned hotkeys will toggle the corresponding layer visibility without using the ribbon.
Icon attribution: Numbers icons created by Abrrakhlaed2626 - Flaticon
