The fromExtent() method of polygon class added at ArcGIS API for JavaScript v3.11 returns an error, "polygon.fromExtent is not a function", while adding a polygon.
Last Published: July 13, 2015ArcGIS API for JavaScript
Bug ID Number
BUG-000082802
Submitted
October 27, 2014
Last Modified
June 5, 2024
Applies to
ArcGIS API for JavaScript
Version found
3.11
Status
Known Limit
After review by the development team, it has been determined that this issue is related to a known limitation with the software that lies outside of Esri's control. The issue's Additional Information section may contain further explanation.
Additional Information
The fromExtent() method is a static method on the Polygon class. Instead of creating a new Polygon, do this: Polygon.fromExtent(extent).