laptop and a wrench

漏洞

Features always return centroids on a query even though the returnCentroid property in a Query Class is set to false.

上次发布: October 16, 2019 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000124894
已提交August 29, 2019
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本4.12
操作系统Windows OS
操作系统版本10.0
状态Will Not Be Addressed

附加信息

This is by design. The document is correct for Query.returnGeometry. It is set to false by default. The createQuery() method sets it to true, please refer to https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#createQuery The returnCentroid parameter works as expected. When set to false, the query to the server does not request it and it does not come back from the server. When it is set to true it does come back in the payload. All extent geometries have a centroid, so when an extent is created, the centroid is created along with it. It is not really related to the query. However, where the API for the query is confusing is that returnCentroid is currently not very useful to the end user. The payload is returned, the FeatureSet in JavaScript is not displayed.

重现步骤

漏洞 ID: BUG-000124894

软件:

  • ArcGIS API for JavaScript

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项