laptop and a wrench

Bug

The featureLayer.fullExtent is null when creating a FeatureLayer from a graphics array.

Last Published: October 6, 2016 ArcGIS API for JavaScript
Bug ID Number BUG-000098935
SubmittedAugust 26, 2016
Last ModifiedDecember 1, 2020
Applies toArcGIS API for JavaScript
Version found4
StatusWill Not Be Addressed

Additional Information

FullExtent is grabbed from the service metadata. Featurelayers from feature collections do not have this. This would make sense why it is not working. What you can try to do is query for the extent from the layer's view. Please see https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#queryExtent

Steps to Reproduce

Bug ID: BUG-000098935

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