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.
Zuletzt veröffentlicht: July 13, 2015ArcGIS API for JavaScript
Bug-ID-Nummer
BUG-000082802
Eingereicht
October 27, 2014
Zuletzt geändert
March 30, 2022
Gilt für
ArcGIS API for JavaScript
Gefunden in Version
3.11
Status
Known Limit
Nach Überprüfung durch das Entwicklungsteam wurde festgestellt, dass dieses Problem im Zusammenhang mit einer bekannten Einschränkung der Software steht, die außerhalb der Kontrolle von Esri liegt. Weitere Erläuterungen finden Sie ggf. im Abschnitt "Zusätzliche Informationen" des jeweiligen Problems.
Zusätzliche Informationen
The fromExtent() method is a static method on the Polygon class. Instead of creating a new Polygon, do this: Polygon.fromExtent(extent).