All,
In experience builder how do I select a given point feature class inside of a polygon and have the map filter to show only those features?
I am creating a map to show how many people are effected by a given event. This is being done by creating a polygon to represent the effected area and then by selecting the meters in the given polygon. Currently I am doing this via the query tool with a insertion query. I can get it to return a list of the meter in the given area. How do I get the map to filter to only show the meters in that given area and have all statics and graphs update accordingly?
Thanks
Laura
Solved! Go to Solution.
There is some configuration that must be done in the widgets first.
Afterwards the workflow will be something like this:
Attached screenshot for further reference.
Here is the best method I have found for finding points in a polygon.
That is a great use of the native tools!
Is there a way to trigger Near Me to make an automatic selection of the results points? I played around with it a bit, but couldn't get there. Perhaps I am missing something.
Another thought was to use results option "Filter layers to only show results", which could be used to filter charts configured using a layer's default data view. Charts kept returning the error "Failure to read input data" after the filtering is done. The filtering functionality in general seems to be broken (map image layers disappear entirely, feature layers seem to filter visually, but no records exist in the table for either). I am using ExB Dev 1.15 and Enterprise 11.3.
Without triggering a selection of result features or correctly filtering them, it seems the Near Me tool will not be able to update charts or dynamic text (only tested those).
Hopefully I am overlooking something, otherwise hopefully the Near Me tool can be enhanced to trigger selections in the future.
ok I have read over your article. The general idea i under stand however i am getting lost in the details.
you set up a near me widget bases on the point feature class with a search distance of 0, and set it to proximity.
on the map you set up an action on the "Record Selection Changes>Framework>Select Data Records" on the polygon feature. can you clarify this step a little more? I am new to setting up actions
Is there a way to test if the set up after this step?
I am not concerned about having the users type in a name of a polygon and having it filter that way so I can skip step 2 if I am understanding correctly?
I am still going through the 3rd step to understand it. overall what dose this step do?
I get to 4 when I get through the first 3.
Thanks
Laura
@Laura_m_Conner So I just re-built this project from the article and confirmed that it does work. (I broke my build sometime since writing the article and wasn't entirely sure it actually worked.)
Your sequence of clicks to add the action will be:
After Step 1: You should be able to open the preview mode, click anywhere in a polygon and find all the points in that polygon.
Step 2 is optional. The map clicks and locator search should work fine without it.
The way this build works is to take the point generated by the Search Widget to trigger the polygon Near Me Widget. The polygon Near Me Widget then triggers the point Near Me Widget. That third step sets up that series of actions.
The fourth step is about cleaning up your display visually. The polygon Near Me will clutter your display and be confusing to your users as it won't always stay in sync with the points searched. It is possible to hide it in an unopenable Sidebar Widget. The linked article explains hiding widgets in more detail.
thanks for the help I flowed the steps but I am still having trouble with this method. I am trying intersects query with the selected polygon feature it gives me a list to export. still am going to have to figure out hoe to get statics from it to display on the map. any ideas?
Do you have the Select widget available to you? I think this could be pretty straightforward if so.
yes I do and I am experimenting with it right now.
There is some configuration that must be done in the widgets first.
Afterwards the workflow will be something like this:
Attached screenshot for further reference.
It does not appear possible using the Near Me hack to make the points filter/select without some user intervention.
If you just need some simple statistics like Count, you can use a Text Widget using Dynamic Content tied to the output of Near Me.