Select to view content in your preferred language

Adding functionality to the search widget

636
4
10-11-2024 08:04 AM
HDan02
by
New Contributor

Hello!

I am attempting to create a modified version of Esri's search widget within Experience builder with additional functionality such as phonetic searching. I am however having troubles identifying where I would insert such an algorithm in code as there are a lot of different files and functions dedicated towards the search widget. Would anyone be able to point me in the right direction?

0 Kudos
4 Replies
JasonBOCQUET
Frequent Contributor

Hi @HDan02 i've probably not the complete answer to your question, but i think this topic from @JeffreyThompson2 can help you to understand how to insert correctly your code inside of the actual search widget : https://community.esri.com/t5/experience-builder-tips-and-tricks/modifying-esri-widgets-and-making-t...

JeffreyThompson2
MVP Frequent Contributor

https://doc.arcgis.com/en/arcgis-online/manage-data/create-locator.htm

From your question, it sounds like you may need to build a custom geolocator in your Online/Enterprise Portal. I can't really advise you on how to do that. Hopefully, the link above can get you started. Once you have a working geolocator, you should be able to use it by just adding it as a Locator Source in the Search Widget.

If you want to make modifications inside the Search Widget, the link in @JasonBOCQUET's post should be a good start.

GIS Developer
City of Arlington, Texas
HDan02
by
New Contributor

@JeffreyThompson2 I'm not using the search function to lookup places spatially. The use case of this custom widget will be for looking up strings in a database of existing street names.  

0 Kudos
JeffreyThompson2
MVP Frequent Contributor

In that case, I recommend starting from scratch. It is usually easier than trying to modify an ESRI widget.

GIS Developer
City of Arlington, Texas
0 Kudos