[OpenLayers-Users] Load monitoring multiple layers
Manuel Arredondo
manuel at trackair.com
Tue Dec 4 13:09:26 PST 2012
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121204/7f04387d/attachment.html>
More information about the Users
mailing list