laptop and a wrench

Error

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
Número de ID del error BUG-000179891
EnviadoOctober 3, 2025
Última modificaciónNovember 3, 2025
Relacionado conArcGIS Maps SDK for JavaScript
Versión encontrada4.32
Sistema operativoWindows OS
Versión de sistema operativoN/A
EstadoKnown Limit

Información adicional

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.

Solución alternativa

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.

Pasos para reproducir

ID del error: BUG-000179891

Software:

  • ArcGIS Maps SDK for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga