The SaveSession Widget for ArcGIS Web AppBuilder enables users to save the current map settings into a session and restore them again later. A saved session includes the extent, visible layers and annotations of the current map. Sessions may be saved and loaded from files so they can be shared with others.
Using the Widget
Saving a Session
Once you have the map just the way you want it - zoomed to the area and layers turned on, enter a name for the session and click the Save button. The session will be added to the Saved Sessions list.
Restoring a Session
To return the map to the same state as when you saved the session, you can double-click the title of the session to load the map.
Managing Sessions in the List
Hover over the Actions column for a session entry to reveal the actions that can be performed on the entry.
Load Map = will load the restore the selected session to the current map
Download Map = will save the session entry to a file that may be shared.
Edit = allows the user to change the session name
*Move Up - Down * = lets you arrange the entries in the session list in the desired order
Delete = click the Delete button to remove the entry from the list
Saved Sessions may be shared with other users or another browser on the same PC by saving the session to a file and then loading the session from the file into the session list.
To save a single session to a file, click the Download Map action for the entry. To save all sessions in the list to a file, click the Save to file link.
To load the sessions from a file, click the Load from file link to display the Load sessions from file dialog
Click the Choose File button and select the file to load. The selected file must be a saved session file. All sessions from the file will be loaded. If a loaded session has the same name as an existing session, a number will be appended to the session to make the name unique.
Source code and installation instructions may be found at GitHub - softwhere/SaveSession-Widget
v2.7 - released on 4/3/2018
Thanks to the City of Garland, Texas for sponsoring the initial development of the SaveSession Widget and releasing it to the community.