Select to view content in your preferred language

Search by Radius (Web application widget alike)

585
1
Jump to solution
10-16-2022 06:59 PM
RoslanSaidi
Occasional Contributor

Hi, currently I'm doing a web based map for some agencies using VueJS and ArcGIS API. I have no clue about how to make Search Customisation by using Radius. I already read the docs but there's no hint there. Is there any tutorial how to develop it? The flow are:

1. Find address or place

2. Set radius by kilometre

3. The result will display Radius on map

4. The result will display the list of layers and point within radius

5. Features - User can set pin location 

 

I've upload a screenshot for example from Web Application Builder. Thanks!

 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Noah-Sager
Esri Regular Contributor

Hi @RoslanSaidi, I think what you're looking for is the filter property on the LocatorSearchSource or the LayerSearchSource. 

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSourc...

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource....

You would need to create a new Extent based on the search radius to use this property properly.

 

View solution in original post

0 Kudos
1 Reply
Noah-Sager
Esri Regular Contributor

Hi @RoslanSaidi, I think what you're looking for is the filter property on the LocatorSearchSource or the LayerSearchSource. 

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSourc...

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource....

You would need to create a new Extent based on the search radius to use this property properly.

 

0 Kudos