Select to view content in your preferred language

Displaying a pop-up on the map using the filter widget in Experience Builder

366
5
01-23-2025 12:43 PM
Status: Open
ShaunK23
Emerging Contributor

So with the search widget, an end-user is able to key in some information into the search-bar like an address for example and get the data/polygons highlighted, pan to, and zoomed in with a pop-up displaying over a polygon just as seen in the following screenshots:

search bar.jpginteract with the map widget.jpgpop up.jpg

 

 

 

 

 

However, lets say when typing an address and one is not sure of what road/street name to enter, they may filter the data using the filter widget by clicking the drop down for the road name and then search by clicking the "Apply button".  The problem here is that there is no pop-up displaying on the map when this happens. I believe the reason for this is that there is no widget interactivity with the map widget just like the search widget. The polygon is only zoomed in and panned to but one has to click the polygon and if the end-user is not map-savvy and is in a rush, they may be confused on how to view the data in the pop-up:

filter widget.jpgfilter settings.jpgfilter results.jpg

With that said, it would be great to have the possibility of the filter widget acting like the search widget to interact with the map widget and henceforth get the pop-up to show up.

5 Comments
JeffreyThompson2

The Popup is designed to the features in a specific geographic place. There can only be one Popup on screen at any given time. Implementing this Idea would involve radically altering how the Popup is designed to work as the Filter is likely to not filter many features over a broad geographic area.

However, it is possible to build your workflow by combining the Select and Feature Info Widgets.

  1. In the Select Widget, use Select By Attributes. This will give you the ability to create the same SQL query you are using in the Filter Widget.JeffreyThompson2_0-1737666729173.png

     

  2. If you want the data to also be filtered, use a Record Selection Changes > Framework > Filter Data Records Action, with your data being both the Action and Trigger Data.JeffreyThompson2_1-1737666887384.png

     

  3. In the Feature Info Widget, set the Data to the Selected Features View.JeffreyThompson2_2-1737666968788.png

 

ShaunK23

Thank you @JeffreyThompson2 

I like the idea of using the selection widget and you are right that it works like the filter widget.

My only concern is if the end-user is not too map-savvy and wasn't sure what to click to get the widget to work and make their selection. It seems like I'll have to give more instructions on how to use the widget such as clicking the buttons or adding some images as a guideline in order to make the selection as seen in the screenshots:

selection widget.jpg

If there was a way to make only one button like the "apply" button as seen in the filter widget it would be perfect. I wonder if anything more than this requires the developer edition to edit the selection widget.

JeffreyThompson2

@ShaunK23 Yes, the Select Widget is a powerful but clunky beast.

If you do want to go with a custom widget approach, I would recommend going fully custom rather than modifying a default widget. You could use the user input to make a definitionExpression for filtering and a query for the queryFeatures() function and feed the results of your query to a Features widget.  

Ke_Xu
by Esri Regular Contributor

Hi @ShaunK23 

To hide layers and use the Query widget instead. In the ArcGIS Online version released at the end of February 2025, we will introduce the "select" data action. This allows user to select all query results at once. 

When the "Show pop-up upon feature selection" option is enabled in the Map widget, the Popup will automatically appear upon selecting features.

Ke_Xu_1-1739283039764.png

 

Thanks,

Ke

 

 

 

ShaunK23

Thank you for the update @Ke_Xu, will take a look end of February.