laptop and a wrench

Bug

The onLoad event does not work for Web Map Service (WMS) layer classes.

Last Published: November 26, 2018 ArcGIS API for JavaScript
Bug ID Number BUG-000116841
SubmittedSeptember 17, 2018
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found3.25
Operating SystemN/A
StatusWill Not Be Addressed

Additional Information

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();

Workaround

Call the onLoad() method after the load event. For example:wmsLayer.on("load", function(layer) {          console.log("WMS Layer");        });        wmsLayer.onLoad();

Steps to Reproduce

Bug ID: BUG-000116841

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