A feature layer created using a feature collection fails to run the 'load' event.
上次发布: January 27, 2017ArcGIS API for JavaScript
漏洞 ID 编号
BUG-000099146
已提交
September 6, 2016
上次修改时间
June 5, 2024
适用范围
ArcGIS API for JavaScript
找到的版本
3.17
操作系统
Windows OS
操作系统版本
7.0 64 Bit
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
FL created using feature collection loads immediately, i.e. the load event gets fired when the code inside the constructor is still executing.
var layer = new FeatureLayer(…);
console.log(layer.loaded); // this will print true.
So, even before the “layer” object is ready, the load event has already happened. So, the event listener for “load” event will never be fired.