laptop and a wrench

Bug

selectedFeatureWidget returns null geometry for feature geometry type polygon and polyline.

Last Published: July 21, 2021 ArcGIS API for JavaScript
Bug ID Number BUG-000139365
SubmittedApril 26, 2021
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.19
Operating SystemWindows OS
Operating System Version10.0
StatusWill Not Be Addressed

Additional Information

The reason for the graphic.geometry showing null is because of timing, wrap it in a watch statement and it should work fine. if (view.popup.selectedFeatureWidget.graphic.geometry == null) { view.watch("popup.selectedFeatureWidget.graphic.geometry", function(x){ console.log ("the geometry of the graphic is", x); }) }

Steps to Reproduce

Bug ID: BUG-000139365

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options