map.allLayers.on("change", function(event)) doesn't provide the list of the operational layers and the sub layers using event.added.
上次发布: November 3, 2017ArcGIS API for JavaScript
漏洞 ID 编号
BUG-000108390
已提交
September 28, 2017
上次修改时间
June 5, 2024
适用范围
ArcGIS API for JavaScript
找到的版本
4.4
操作系统
Windows OS
操作系统版本
10.0
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
This is not intended to work with sublayers this way. In order to listen for sublayers within the MapImageLayer, you must listen for layer.allSublayers.on("change"...) not map.allLayers.on("change"...)
解决办法
event.moved provides the list of the operational and sublayers.