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 Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動