SDI sharelink

The bundle sdi_appstate-share provides a widget used to share the state of an app. In contrast to the map.apps share-link bundle, where all parameters for restoring the state of an app are encoded in the URL, the sdi_appstate-share bundle saves the current state of the app in the database. The only parameter in the link is stateId containing the ID of the saved state.

Sharing Tools

The bundle provides three tools for different sharing options.

Tool ID Description

sdi_appstate_share_Tool

Used to open and close a sharing dialog as seen in the screenshot below.

sdi_copyAppStateLinkTool

When clicked, saves the current app state in the backend service and copies a link to the clipboard.

sdi_shareAppStateLinkTool

When clicked, saves the current app state in the backend service and opens a sharing dialog provided by the browser.

widget tools

You can add these tools to arbitrary map.apps toolsets just like any other map.apps tool.

Please refer to the bundle documentation for details.