The onLoad event does not work for Web Map Service (WMS) layer classes.
上次发布: November 26, 2018ArcGIS API for JavaScript
漏洞 ID 编号
BUG-000116841
已提交
September 17, 2018
上次修改时间
June 5, 2024
适用范围
ArcGIS API for JavaScript
找到的版本
3.25
操作系统
N/A
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
Use the workaround provided:
Call the onLoad() method after the on load event. For example:
wmsLayer.on("load", function(layer) {
console.log("WMS Layer");
});
wmsLayer.onLoad();
解决办法
Call the onLoad() method after the load event. For example:wmsLayer.on("load", function(layer) { console.log("WMS Layer"); }); wmsLayer.onLoad();