laptop and a wrench

Bug

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

Zuletzt veröffentlicht: October 16, 2019 ArcGIS API for JavaScript
Bug-ID-Nummer BUG-000124894
EingereichtAugust 29, 2019
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for JavaScript
Gefunden in Version4.12
BetriebssystemWindows OS
Betriebssystemversion10.0
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000124894

Software:

  • ArcGIS API for JavaScript

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln