laptop and a wrench

漏洞

The Editor widget allows users to select and edit all features on a feature layer although the feature layer is instantiated with a selection mode and only a subset of features is displayed in the map.

上次发布: July 27, 2016 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000097727
已提交July 13, 2016
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本3.17
操作系统N/A
状态Will Not Be Addressed

附加信息

Adding a feature layer to the map in a selection mode. API is doing what it is supposed to do. It is selecting features that intersect where you clicked on the map. That is what selection mode does. If you wish to edit features that meet only certain criteria than set the definitionExpression on the featureLayer. The editor will only allow users to edit the features that meet the definitionExpression. In the jsBin code I added the following line after where it creates the new feature layer. I confirmed that it works. It will only let you select features that meet definition expression criteria. Here the code… Layer("https://sampleserver6.arcgisonline.com/arcgis/rest/services/PoolPermits/FeatureServer/0", { mode: FeatureLayer.MODE_SELECTION, outFields: ["*"], opacity: 0.75 }); //added this line below noPermitFeatureLayer.setDefinitionExpression("apn = '234240014'"); var query = new Query(); query.where = "apn = '234240014'"; noPermitFeatureLayer.selectFeatures(query, FeatureLayer.SELECTION_NEW);

重现步骤

漏洞 ID: BUG-000097727

软件:

  • ArcGIS API for JavaScript

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项