laptop and a wrench


The Polygon .getCentroid() method returns incorrect values.

Last Published: October 3, 2016 ArcGIS API for JavaScript
Bug ID Number BUG-000093362
SubmittedJanuary 7, 2016
Last ModifiedDecember 1, 2020
Applies toArcGIS API for JavaScript
Version found3.15
Version Fixed3.16


Use .getExtent()getCenter() to return the correct values. Example: var center = polygon.getExtent().getCenter();

Steps to Reproduce

Bug ID: BUG-000093362


  • ArcGIS API for JavaScript

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic