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.
Do I have to monitor each layer separately and give them a boolean to switch to 
true when their ‘loadend’ event is triggered? 
or is there an API call I can use which monitors all the events as a whole?
The map event doesn’t have a “loadend” event type.

function registerEvents(layer) {

    layer.events.register("loadend", layer, function() {
        this.logEvent("Ready");
        baseTilesLoaded = true;
    });
    
    map.addLayer(layer);
}
    


Best Regards,
Manuel Arredondo.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to