laptop and a wrench

Bug

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
Bug ID Number BUG-000179891
SubmittedOctober 3, 2025
Last ModifiedNovember 3, 2025
Applies toArcGIS Maps SDK for JavaScript
Version found4.32
Operating SystemWindows OS
Operating System VersionN/A
StatusKnown Limit

Additional Information

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.

Workaround

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.

Steps to Reproduce

Bug ID: BUG-000179891

Software:

  • ArcGIS Maps SDK for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options