laptop and a wrench

Bogue

The polygon.centroid property does not return the true centroid of the polygon geometry in the ArcGIS Maps SDK for JavaScript v4.33.

ArcGIS Maps SDK for JavaScript
Numéro d’ID de bogue BUG-000179891
EnvoiOctober 3, 2025
Dernière modificationNovember 3, 2025
S’applique àArcGIS Maps SDK for JavaScript
Version trouvée4.32
Système d’exploitationWindows OS
Version du système d’exploitationN/A
StatutKnown Limit

Informations supplémentaires

Polygon.centroid is deprecated as of ArcGIS Maps SDK for JavaScript version 4.34, and the property will be removed in a future release. This functionality is superseded by the centroidOperator.

Solution de contournement

Migrate to the centroidOperator. This operator returns the geometric center of mass, where the mass is equally distributed at each point or vertex of the geometry.

Étapes pour reproduire

ID de bogue: BUG-000179891

Logiciel:

  • ArcGIS Maps SDK for JavaScript

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement