Search widget with Composite Locator returns two pins

228
1
09-27-2023 09:35 AM
JoseSanchez
Occasional Contributor III

Hello everyone,

I am using the EB Search widget to find and zoom to an address, and I am using also a Composite Locator that first searches by address  and then by street.

I am using a Pin to show the location of the address.

When I zoom to a specific address, instead of showing only 1 pin it shows 2 pins. One for the Address in the center of the property, and another for the Street in one side of the property.

Is there a way to show only one, the one in the center of the property ?

See attached picture for a graphical representation.

 

Thanks

 

 

 

 

0 Kudos
1 Reply
ShanaBritt
Esri Regular Contributor

Have you considered creating a multirole locator over  using a composite locator? The multirole locator will reduce duplicate results and returns the most precise candidate. A composite locator does not have this functionality and will return duplicate candidates for the same location.

https://pro.arcgis.com/en/pro-app/latest/help/data/geocoding/combine-multiple-layers-into-a-single-l...

https://pro.arcgis.com/en/pro-app/latest/help/data/geocoding/tutorial-create-a-multirole-locator.htm

 

 

0 Kudos