selectedFeatureWidget returns null geometry for feature geometry type polygon and polyline.
上次发布: July 21, 2021ArcGIS API for JavaScript
漏洞 ID 编号
BUG-000139365
已提交
April 26, 2021
上次修改时间
June 5, 2024
适用范围
ArcGIS API for JavaScript
找到的版本
4.19
操作系统
Windows OS
操作系统版本
10.0
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
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);
})
}