<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>I have multiple WMS layers on an OpenStreetMap base layer. I want to be 
able to know when there are no more map requests being done by any layer. I have 
used the OL example to monitor layers as shown below.</DIV>
<DIV>Do I have to monitor each layer separately and give them a boolean to 
switch to true when their ‘loadend’ event is triggered? </DIV>
<DIV>or is there an API call I can use which monitors all the events as a 
whole?</DIV>
<DIV>The map event doesn’t have a “loadend” event type.</DIV>
<DIV> </DIV>
<DIV>function registerEvents(layer) {</DIV>
<DIV> </DIV>
<DIV>    layer.events.register("loadend", layer, function() 
{</DIV>
<DIV>        this.logEvent("Ready");</DIV>
<DIV>        baseTilesLoaded = true;</DIV>
<DIV>    });</DIV>
<DIV>    </DIV>
<DIV>    map.addLayer(layer);</DIV>
<DIV>}</DIV>
<DIV>    </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">Best 
Regards,<BR>Manuel Arredondo.</DIV></DIV></DIV></BODY></HTML>