[OpenLayers-Users] show waitimage for overlays

Christopher Schmidt crschmidt at metacarta.com
Fri Dec 22 15:35:08 EST 2006


On Fri, Dec 22, 2006 at 05:02:12PM +0100, Bart van den Eijnden (OSGIS) wrote:
> Hi list,
> 
> setting a background url for the OpenLayers' div shows an animated gif
> (waitimage) until the base layer is loaded, but it does not show the
> waitimage when overlays are loading.
> 
> So I am showing a waitimage in a div, and I want to remove it when all the
> overlays finish loading. Is there an event I can hook into which gives me an
> idea when the overlays finish loading?

Nope. OpenLayers does not currently track the number of outstanding
image requests, so there is no way to know when all the images have
loaded. 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list