laptop and a wrench

漏洞

The Search widget does not honor filter by where clause and filter by geometry in ArcGIS API for JavaScript 3.21.

上次发布: August 18, 2017 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000106693
已提交July 19, 2017
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本3.21
状态Will Not Be Addressed

附加信息

The filter property should only have been doc'd for 4.x. SearchQueryParams and suggestQueryParams has been deprecated for 3.x. To get around this, please you can use the esriRequest.setRequestPreCallback Documentation will be updated to reflect that 3.x does not include this property.

解决办法

Set definition expression for the feature layer and use the feature layer in the Search widget's sources. This workaround however does not work for filter by geometry.sources: [{ featureLayer: new FeatureLayer("<a href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/EmergencyFacilities/MapServer/0" target="_blank">https://sampleserver6.arcgisonline.com/arcgis/rest/services/EmergencyFacilities/MapServer/0</a>", { outFields: ["*"], infoTemplate: new InfoTemplate("Emergency Facilities", "facname: ${facname}organiz: ${organiz}",definitionExpression: "organiz = 'City of Redlands'") }), searchFields: ["facname"], placeholder: "Redlands Community Hospital", name: "Emergency Facilities" }]

重现步骤

漏洞 ID: BUG-000106693

软件:

  • ArcGIS API for JavaScript

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项