laptop and a wrench

Bug

Adding an extent filter to LocatorSearchSource fails to filter the results and suggestions of the Search widget to the specified extent.

Last Published: December 28, 2020 ArcGIS API for JavaScript
Bug ID Number BUG-000135766
SubmittedNovember 30, 2020
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.17
Operating SystemN/A
Operating System VersionN/A
StatusWill Not Be Addressed

Additional Information

The test-app shows the filter property is being incorrectly set, and the spatial reference is incorrect for the extent used. Refer to this working app which demonstrates how the property is supposed to be used, https://codepen.io/noash/pen/WNGpGXz?editors=1000

Workaround

Set the withinViewEnabled property of the LocatorSearchSource to true to constrain the search results to the view's extent: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#withinViewEnabled

Example: https://codepen.io/laurenb14/pen/gOwLQBL

Steps to Reproduce

Bug ID: BUG-000135766

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options