Bug Number BUG-000082802
Submitted Oct 27, 2014
Modified Feb 14, 2018
Severity Medium
Applies To ArcGIS API for JavaScript
Version Found 3.11
Prog Language N/A
Server Platform
Client Platform
Database N/A
Locale N/A
Status Not in Current Product Plan
Version Fixed
SP Fixed

Bug BUG-000082802


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.

Additional Information

The fromExtent() method is a static method on the Polygon class. Instead of creating a new Polygon, do this: Polygon.fromExtent(extent).

Alternate Solution