ArcGIS Blog

Public Safety

ArcGIS Experience Builder

Recreating Web Appbuilder Situation Awareness widget workflows in Experience Builder

By Aziza Parveen

With the February 2024 update of ArcGIS Online, Near Me widget added some great enhancements,  including some functional parities with Near Me, Info Summary, Situation Awareness and Screening Web AppBuilder widgets. We have implemented list virtualization to improve performance, added support for map symbols and many more. We also organized the configuration experience for greater usability and better user experience. Please visit this community post if you want to learn more about what is new in Near Me in February 2024 ArcGIS Online update. As you migrate to Experience Builder, you can leverage these new functionalities for your Situation Awareness workflows in Experience Builder.

Let us assume you have a Web Appbuilder App that is used by emergency management personnel to understand the impact of an incident on public infrastructure and human populations and sharing that information with other users in the EOC. You want to migrate this app to Experience Builder. Here’s how to do it :

 

Create a new app

First, you’ll create an app in Experience Builder:

  1. Sign into your ArcGIS account.
  2. From the Content page, click Create app and click Experience Builder.
  3. Click Create New.
  4. Choose a mapcentric template and click Create. See an example of an application using the Blank fullscreen template. Near Me is mapcentric widget, so you need to add at least one map with a feature layer.
  5. In your application, add a Map widget. For my application, I chose a map that has facilities, infrastructure and demographic data.
  6. Add the Near Me widget and connect it to the map.

Add and configure the Search widget

Next, you’ll add a way for users to search an address or an existing feature and use that as incident location.

  1. Add the Search widget to the map.
  2. In the Search panel, click New search source and choose Locator source.
  3. Click Select utility and select a geocode locator. In my application, I used ArcGIS World Geocoding Service.
  4. Click New search source again and choose Layer source, and then configure the source. I chose Hospitals layer.
  5. If your layer source is a feature layer, make sure that you’ve turned off Enable filtering for layer search source.
  6. Expand Search result.
  7. Turn on Auto select the first result.
  8. Click the Action tab and click Add a trigger.
  9. Click Record selection changes.
  10. For Select a target, click Near Me and then click Set location as the action.
Search widget configuration

Configure the Near Me widget

Now that you’ve created your app, you’ll configure the Near Me widget by configuring the map, search, and analysis settings.

Configure Analysis settings

  1. Click on the Near Me.
  2. In the Content panel, under Analysis Settings, select your map.
  3. Click the map to configure its settings.

Define a search method

  1. Make sure the Specify a location option is selected.
  2. Change the Heading label, default is Location. I used Incident location
  3. Set the Default Search distance and Distance units. I set my default distance to 2 miles.

Configure analysis for layers

Setting up analyses is the key step when configuring the Near Me widget; the widget will not work until at least one analysis is configured. To configure the analysis settings, follow these steps:

Configure Closest feature analysis

  1. Click on Add Analysis button.
  2. Select the Hospitals layer.
  3. Set a Label for the analysis. I used Closest Hospital.
  4. From the Analysis Types, choose Closest Feature, Click OK.
  5. Click X button on Edit Analysis panel to go back to main Analysis panel.
Situation Awareness Closest Feature analysis config

Configure Proximity Analysis 

  1. Click on Add Analysis button.
  2. Select the layer. I chose Shelters layer
  3. Enter a Label for the analysis. I set Nearby shelters.
  4. From the Analysis Types , choose Proximity.
  5. From Display field dropdown, choose a field to be used as feature title. I chose Name.
  6. Click to enable Group features and select a field. I chose Status to group features based on each shelter’s operational status.
  7. Enable Expand analysis results.
Situation Awareness workflow proximity analysis config

Configure Summary Analysis

  1. Click on Add Analysis button.
  2. Select the USA Block Groups layer.
  3. Enter a Label, I set Vulnerable population.
  4. From the Analysis Types, choose Summary.
  5. Click on Add Summary.
  6. From Statistics tab, choose an Operator and a Field, click Insert. I used Total population in 2020 as label, sum as operator and chose POP2020 as the field.
  7. From the Edit Analysis panel, click the Pencil (Edit expression) icon on the Summary card just created to format numbers and format numbers by clicking on the Gear icon from bottom left, click Insert. I set the decimal places to 0. Same way, you can configure multiple summary fields by following the steps from 5 to 8. I created three additional summary fields to show Children under 5 years, Seniors over 85 years and Number of households.
  8. Disable Highlight results on map.
  9. Enable Expand analysis results and click OK.
  10. Save the application.
Summary analysis config panel
Situation Awareness workflow summary analysis config

Configure message action

In October update we added support for Near Me to emit message action to communicate with other widgets. In your app, you can set up message action so when user clicks on a single feature from the result list in Near Me, the map will pan and flash to that feature.

  1. Click on the Action tab in Near Me widget
  2. Make sure Message action tab is selected.
  3. Click on Add a trigger
  4. Select Record selection changes
  5. From Widgets list, select Map.
  6. Select Pan to as an action
  7. Make sure that  your layer is listed in the Trigger data section, optionally set custom zoom scale. Close Action Settings tab.
  8. Click again on + Add action button again and add flash action. Make sure to select your layer for Trigger data and Action data.
  9. Save app.

Understand the impact of an incident

Finally, you’ll verify that the Near Me widget works as expected.

  1. Launch the app.
  2. In the Search widget, search an address or location.
  3. Notice that the configured analysis results are presented on the widget panel. As an alternative, a user can drop a point for incident location,
  4. Or you can select a feature on the map, once the pop-up opens, click on the Actions menu from top left corner of the pop-up, right click and select Set location to use that feature as input location.

In my application I entered Baltimore, MD in search widget. Click on the result and it is then used as an Incident location in the widget and following analysis results were presented.

• Closest hospital to the incident location
• Nearby shelters within 2 miles
• Vulnerable population

5. Click on the Export icon to download data in csv format.

Situation awareness workflow

Related resources

Share this article

Subscribe
Notify of
0 Comments
Oldest
Newest
Inline Feedbacks
View all comments