Select to view content in your preferred language

Click on polygon and filter spatially related polygons, filter related list.

467
4
11-09-2024 11:13 PM
Labels (1)
Damian
by
Regular Contributor

Dear AGOL community

I have three datasets

  1. A polygon layer of Australian States
  2. A polygon layer of species distributions
  3. A table containing a list of species names that is related to 2.

I want to create an ArcGIS Experience Builder app containing a map of Australian States and a list of species names. When a user clicks on a State, I want to filter my list to display only those species names that occur in that state. Something similar to this:

https://public.tableau.com/views/AustralasiaBatSpeciesV2/AusBats?:language=en-GB&:embed=y&:sid=&:red...

My first problem is I can’t figure out how to spatially filter the species distribution polygons when I click a state.

Once I solve that problem, I guess I use a List Widget to display my species list and use an Action trigger to filter?

Any suggestions greatly appreciated.

Regards, Damian

 

0 Kudos
4 Replies
JeffreyThompson2
MVP Frequent Contributor

https://community.esri.com/t5/experience-builder-tips-and-tricks/zone-lookup-in-experience-builder-a...

Here is a method to use a Near Me Widget to find points in a polygon. To make it work with intersecting polygons, I think the state polygon may need to be highest in the drawing order and you may need to disable popups for the species polygons.

As you describe, once you have the species polygons in Near Me, you can output them to a List and use Actions to filter the Table when selected in the List.

GIS Developer
City of Arlington, Texas
0 Kudos
Damian
by
Regular Contributor

Thank you for your response @JeffreyThompson2. Thats a very handy suggestion, and managed to get me halfway there. I can indeed output the results of the Near Me widget to a List, however using that method, my list is empty to start with. I need my users to see a full species list when nothing is selected, and filter my List when a state is selected. Have tried every conceivable combination of Actions on both my Map and my Near Me widgets to no avail.

Any further suggestions greatly appreciated.

Regards, Damian

 

0 Kudos
JeffreyThompson2
MVP Frequent Contributor

I don't have a good solution for this problem. ArcGIS Online was just updated yesterday and Near Me was upgraded with better support for polygon layers, so maybe that will help or you can give your output directly in Near Me. Another option might be to put your output list in a Widget Controller or Sidebar and use the Record Selection Changes Action to pop it out when its populated.

GIS Developer
City of Arlington, Texas
0 Kudos
JeffreyThompson2
MVP Frequent Contributor

https://community.esri.com/t5/experience-builder-tips-and-tricks/has-arcgis-online-caught-up-to-deve...

To further expand on the idea I mentioned last week, you could use two Lists and a Sidebar to simulate a single List updating after a search.

GIS Developer
City of Arlington, Texas
0 Kudos