laptop and a wrench

Bogue

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

Dernière publication: December 28, 2020 ArcGIS API for JavaScript
Numéro d’ID de bogue BUG-000135766
EnvoiNovember 30, 2020
Dernière modificationJune 5, 2024
S’applique àArcGIS API for JavaScript
Version trouvée4.17
Système d’exploitationN/A
Version du système d’exploitationN/A
StatutWill Not Be Addressed

Informations supplémentaires

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

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000135766

Logiciel:

  • ArcGIS API for JavaScript

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement