laptop and a wrench

Erro

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

Última Publicação: October 16, 2019 ArcGIS API for JavaScript
Número de ID do Erro BUG-000124894
EnviadoAugust 29, 2019
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for JavaScript
Versão encontrada4.12
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0
StatusWill Not Be Addressed

Informações Adicionais

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.

Etapas para Reproduzir

ID do Erro: BUG-000124894

Software:

  • ArcGIS API for JavaScript

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download