laptop and a wrench

漏洞

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

上次发布: December 28, 2020 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000135766
已提交November 30, 2020
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本4.17
操作系统N/A
操作系统版本N/A
状态Will Not Be Addressed

附加信息

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

解决办法

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

重现步骤

漏洞 ID: BUG-000135766

软件:

  • ArcGIS API for JavaScript

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项