WMS layer loading to the map event

76
1
Jump to solution
02-11-2020 01:58 PM
Occasional Contributor

Hello,

I am using ArcGIS javascript API 3.31 to load a WMS layer to a map. The WMS layer is hosted by a third party. It takes 7-10 seconds to load. I add a loading image to show the status of the layer loading. I would loading image to disappear when the WMS layer displays in the map. I have tried esri/layers/WMSLayer's "load" event and esri/map's "layer-add" or "layer-add-result" event. None of them work. Event fires before I can see the WMS map layer is added to the map. Can anybody tell what kind event I need?

Thanks

Helen

Tags (2)
Reply
0 Kudos
1 Solution

Accepted Solutions
Esri Contributor

Hi there, 

You should listen to WMSLayer.update-end event for this. 

View solution in original post

1 Reply
Esri Contributor

Hi there, 

You should listen to WMSLayer.update-end event for this. 

View solution in original post