(Added at v1.2)
The Incident Analysis widget allows you to locate an incident on the map and analyze information from different feature layers within a specified distance of the incident. It supports feature layers from feature services and map services.
Configure the Incident Analysis widget
This widget can be set to open automatically when an app starts. Hover over the widget and click the Do not open this widget when the app starts button to change the setting to Open this widget automatically when the app starts. (For widgets that you need to add to the app first, you can turn on this option after configuring the widget.)
- Hover over the widget and click the Configure this widget button to open the configuration window.
If you need to add the widget to the app first, click a widget placeholder on the Widget tab. In the Choose Widget window that opens, select the widget and click OK.
- Set the title for the widget, and optionally click Change widget icon if you want to replace the default icon for this widget.
A file explorer window allows you to browse to a local image file to use it as the widget icon.
- Specify the tab label for Incident and area of interest for Locate Incident.
- Click Add Tab to add a tab that will display information from a specific layer related to the incident. Each tab will allow you to specify a layer from the list of feature layers in the map. You can also specify the type of analysis using one of the following options:
- Summary—A summary for each of the visible numeric fields in the layer.
- Proximity—A list of features from the layer that are within the specified distance of the incident.
- Closest Feature—The closest feature to the incident.
- Optionally, specify a label for each tab.
- Click the Edit tool under Actions to open the Select Fields window, adding fields for analysis.
- Optionally, change the order of tabs or delete a tab under Actions.
- In the General Settings section of the configuration window, you can specify the following options:
- Distance Units—Select the units to be used for the Proximity and Closest Feature analysis.
- Enable Routing—Check this option to enable routing from the feature to the incident. The Directions widget is also required to be part of the application for this option.
- Closest Feature Maximum Distance—The maximum distance to use when searching for the closest feature.
- Buffer Label—Optional label for the Buffer Distance.
- Minimum Buffer Distance—Minimum distance allowed to buffer incidents.
Because the value set for the buffer is always a range, the widget defaults to the minimum buffer distance plus 10 on start.
- Maximum Buffer Distance—Maximum distance allowed to buffer incidents.
- Optionally, in Weather Options, check the Include Weather Information to display current and forecasted weather conditions at the incident location. Check Celsius-Kilometers to display wind speed in these units. You can also click the Select Weather Layers button to select any weather-related layers—such as radar or precipitation—from the currently selected web map that need to be displayed on the map when the weather tab is selected. Optionally, if you want the layers used in the widget to stay on when you activate the widget, check Disable layer visibility management.
Use the Incident Analysis widget
- Click the Incident Analysis widget button to open it.
The widget appears at the bottom of the map.
- The Incident tab is selected by default.
- To specify a buffer distance to the incident, drag the slider or manually input a value and press Enter.
When you manually input a distance value, the buffer slider will not be dynamically changed until you press Enter to submit the actual buffer value.
- Locate an incident on the map by using one of the Locate Incident drawing tools. Click the Clear Incident button to clear the incident.
- Click other tabs—such as Weather, Demographics, and Fire Stations—that are configured in the widget to view the analyzed information for specified layers. You can scroll the widget panel horizontally to view additional results.
- Optionally, click a car icon to get directions from selected features (for example, a police station) to the incident.
The car icon appears only if the Enable Routing option is selected and the Directions widget is configured in the app.
- Optionally, click the number icon to zoom to the feature.
- Optionally, click Download CSV to download analyzed data as a .csv file.
- To close the widget, click the Close button in the lower right corner of the widget.