Available with the ArcGIS Indoors Maps extension.
You can configure Indoor Viewer to launch directly to a feature or a route between two features (a smart launch). The smart launch functionality is enabled using parameters in the app’s URL.
Launch to a feature
You can configure the Viewer app to launch directly to a specific feature. The URL for launching to a feature is automatically generated using the Share button as follows:
- Select a feature in the Viewer app.
The info panel appears with details about the selected feature.
- Click the Share button at the top of the info panel and click Copy to Clipboard.
The URL is copied to the clipboard.
- Open a browser window and paste the URL there.
The generated URL launches the Viewer app to the specified feature.
The URL generated using the Share button launches the app to a feature using parameters that identify the feature's location. You can use these parameters to build a URL that launches the Viewer app to a specified route.
The attribute in the SourceKey layer that contains a unique identifier for the feature.
This parameter is only included for features that exist in the indoor dataset. Other features, such as dropped pins, do not include a unique identifier.
The name of the layer in the web map that contains the feature, for example, Units.
The itemUniqueIdField field value for the feature.
For features that do not exist in the indoor dataset, such as dropped pins, this is randomly generated.
The x-coordinate of the point identifier.
The y-coordinate of the point identifier.
The vertical order of the point identifier. This is the base 0 level ordering value contained in ArcGIS Indoors Information Model feature classes.
This parameter contains the operationalLayer identifier for each layer that is turned on when the web map is shared.
The URL uses these parameters to launch the Viewer app to a feature using the following structure:
URLs for locations that do not exist in the indoor dataset, such as dropped pins, do not include the itemUniqueField parameter. The itemSourceKey value is set to stand-alone and an itemUniqueId value is randomly generated.
Launch to a route
You can configure the Viewer app to launch directly to a route by defining the route's start and end points in the app’s URL. If both the start and end points are provided, the app automatically resolves the route in the directions panel. Two route stops are supported: the route start and the route end.
A route must consist of a route start and a route end. You can configure these features using a structure similar to the URL generated using the Share button. To distinguish the route start from the route end in the URL, the letters rs are prefixed to each route start parameter name and the letters re are prefixed to each route end parameter name.
You can specify the unique identifier, field, and ID, or the x-, y-, and l-values to identify the feature.
Build the smart launch to route URL
You can use the Share button in Viewer to generate the route URL parameters and values.
- Select a feature in the Viewer app.
The info panel appears with details for the selected feature.
- Click the Share button at the top of the info panel and click Copy to Clipboard to copy a URL to the clipboard.
- Paste the URL into a text editor such as Notepad++, and identify the key parameters that allow the app to launch directly to the feature.
- Repeat steps 1 through 3 for the other end of the route.
- Construct the URL to automatically launch the Viewer app to a route by doing the following:
- Prefix the letters rs to the parameter names for the route start feature and the letters re to the parameter names for the route end feature.
- Capitalize the letter immediately following the new prefix. For example, the parameter itemUniqueIdField for the route start becomes rsItemUniqueIdField, and the same parameter for the route end becomes reItemUniqueIdField.
- Build a smart launch URL using the following basic structure:
For locations that do not exist in the indoor dataset, such as dropped pins, you must include the x-, y-, and l-values for the point identifier. In this case, set itemSourceKey to standalone and use the Unique item ID value from the URL generated in step 2. An itemUniqueIdField value is not required.
The following examples represent various URLs that can be used with a smart launch.
Launch to a feature URL
- Shared office location:
- Shared dropped pin location:
Launch to a route URL
- Unit to dropped pin:
- Unit to unit: