I am working on ArcGIS Online and have added the district lookup widget to the app, but every time an address is searched and the function runs it says "Could not find the point associated with the polygon". How do I get rid of this error so that the widget works without this pop-up window?
On a side note; if you want attributes from multiple feature services present in one popup look into arcade expressions. The most recent release will allow you to do this in the popup editor.
Hi Stella,
Could you share the URL to your service? If I can see what your layer looks like I can offer some suggestions.
-Allison
Thank you very much for your quick reply. I appreciate. I will try that to see if the error message stops. I am thinking it has to do with the relationship class but I used the local govt model to load data.
Sent from Yahoo Mail for iPhone
I was unable to entirely figure out how to properly work the widget, but found another solution that might help.
All I wanted was the selected information (Address, City, Zip Code, trash days, garbage days, etc.) to be shown in a pop up and to be directed to the location when an address is input in the search bar.
1) Instead you can create a spatial join between your classes before downloading them online.
2) Create Web App, navigate to Widget and click the edit (pencil) in the Search Widget.
3) In the top left click add search source, then feature layer and select the layer which has your spatial join and click ok.
4) Still in the Search widget edit, click on the pencil next to Search Fields and narrow down to your preferred searches.
5) In the bottom left make sure that the "Show pop-up when the feature or location is found" is enabled and click ok.
6) In the search bar click the arrow next to it and select your layer instead of the ArcGIS Service, type an address to test if the pop-up and search are correct.
This should show you a pin of the location and a pop-up of the information you selected.
This is how I got rid up of the pop-up, but still could not get the widget to do what I wanted so I tried the solution above that worked best for me.
Please were you able to solve this problem. I am having the same issue. I loaded my data using the local govt model but am getting the error could not find the point associated with the polygon. Please can anyone help point out what I am missing. I can see the the districts polygon ie the elem, middle and senior high boundaries but the error pops up each time I put an address in the search button. Thank you
Do you have a specific question on For Loops?
ForLoop - Python Wiki
If so, it might be best to ask in a separate thread.
I have followed the instructions accordingly and the same window continues to appear. I believe I am making an error when creating a relationship so I am working on creating a primary and foreign key to provide a relationship between my polygon and the points that are within them.
Do you know of any helpful python scripting to create for loops?
http://cggis.maps.arcgis.com/home/item.html?id=8cd5ed6698604262916222933890d478
Alejandra,
Just to make sure, have you gone through setting up the search settings as according to this document:
District Lookup widget—Web AppBuilder for ArcGIS | ArcGIS
In the Search Settings section of the widget configuration, specify the following options:Select layer—Click Set to define layers. In the dialog box, define the following parameters:Select polygon layerSelect point layer related to polygon layerSet location button—Enabling this parameter causes the Set location button to appear next to the search box. Click the Set location button, and click the map to set the search location. If you don't enable this parameter, clicking the map will automatically set the location.Select symbol to highlight polygon—Select the display symbol, color, transparency, outline color, and outline width to be used to highlight the polygon.Address or location symbol—Select and adjust the symbol of the address or location symbol.Select color to highlight point—Define the color used to highlight the point symbol.Note:The widget uses the pop-up defined in the map on the Information tab. You can enable one or both layers to have pop-ups. Whatever is defined will be displayed on the Information tab.
In the Search Settings section of the widget configuration, specify the following options:
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.