laptop and a wrench

Error

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

Última publicación: October 16, 2019 ArcGIS API for JavaScript
Número de ID del error BUG-000124894
EnviadoAugust 29, 2019
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for JavaScript
Versión encontrada4.12
Sistema operativoWindows OS
Versión de sistema operativo10.0
EstadoWill Not Be Addressed

Información adicional

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.

Pasos para reproducir

ID del error: BUG-000124894

Software:

  • ArcGIS API for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga