laptop and a wrench

Bug

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, 2015 ArcGIS API for JavaScript
Bug ID Number BUG-000082802
SubmittedOctober 27, 2014
Last ModifiedMarch 30, 2022
Applies toArcGIS API for JavaScript
Version found3.11
StatusKnown Limit

Additional Information

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

Steps to Reproduce

Bug ID: BUG-000082802

Software:

  • 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