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-Nummer BUG-000179891
EingereichtOctober 3, 2025
Zuletzt geändertNovember 3, 2025
Gilt fürArcGIS Maps SDK for JavaScript
Gefunden in Version4.32
BetriebssystemWindows OS
BetriebssystemversionN/A
StatusKnown Limit

Zusätzliche Informationen

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000179891

Software:

  • ArcGIS Maps SDK 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