With the October 2023 update of ArcGIS Online, the Near Me widget is now out of beta in ArcGIS Experience Builder. We have added some great enhancements in this update including some functional parities with Near Me and Situation Awareness Web AppBuilder widget, performance improvement, widget communications and many more. We also restructure the configuration experience for greater usability and better user experience. As you migrate to Experience Builder, you can leverage these new functionalities for your Info Summary workflows in Experience Builder.
Let us assume you have a Web Appbuilder App that is used by public to explore current roadway conditions, restrictions, closures, and other alerts to help plan a safer trip. You want to migrate this app to Experience Builder. Here’s how to do it:
Create an app
To create an app In Experience Builder
First, you’ll create an app in Experience Builder:
- Sign into your ArcGIS account.
- From the Content page, click Create app and click Experience Builder.
- Click Create New.
- Choose a mapcentric template and click Create. See an example of an application using the Blank fullscreen template.
- In your app, add a Map widget. Near Me is mapcentric widget, so you need to add at least one map with a feature layer. For my app, I chose a map that has local incidents, road closures and weather data.
- Add the Near Me widget to your app and connect it to the Map widget.
Configure 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.
In my application, I want the users to find out information about
- Local incidents.
- Road closures, Roadblocks and Detours.
- Weather warnings.
Configure map settings
- Click the Near Me .
- In the Content panel, under Analysis Settings, select your map.
- Click the map to configure its settings.
Define a search method
1. Select Current map area.
2. Change the Heading label.
I entered Explore active incidents and warning
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:
- Click on Add Analysis button.
- Select the layer. I chose Local Incidents layer.
- Set a Label. In my application, I labeled it Active local incidents.
- From the Analysis Types, choose Proximity.
- Select Display field and I choose Incident Name field for list title.
- Select Sort features by Field and choose Incident Name field to sort features.
- Enable Expand on open and check Expand feature details.
- Click OK button and close Edit Analysis panel to go back to main Analysis panel.
Similar way I configured proximity analysis for Incident perimeter, Road Closure, Road Blocks and Weather warnings layer in my application. After configuring all the analyses, my application’s configuration panel looks like following screenshot.
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.
- Click on the Action tab in Near Me widget
- Make sure Message action tab is selected.
- Click on Add a trigger
- Select Record selection changes
- From Widgets list, select Map.
- Select Pan to as an action
- Make sure that your layer is listed in the Trigger data section, optionally set custom zoom scale. Close Action Settings tab.
- Click again on + Add action button again and add flash action. Make sure to select your layer for Trigger data and Action data.
- Save app.
Explore active incidents and warning
Finally, you’ll verify that the Near Me widget works as expected.
1. Launch the application.
2. After the application loads, widget will show all the configured layer’s feature within current map extent.
In my application, the widget will show all the Local Incidents, Road Closures, roadblocks, detours and Active weather warning within the current map area,
3. With each map extent change, clicking Update results will refresh the app with current map extent features.