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:
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:
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.
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.
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:
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.
@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.
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.
Thanks,
Ke
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.