Using OpenLayers, is there an easy way to tell if a map image has loaded correctly, perhaps using the “loadend” event?
We are reading map tiles from GeoServer, and using OpenLayers to display them. Most of the time, the image displays in a reasonable time. Occasionally (especially when scrolling back and forth using the mouse wheel), the “loadend” event is fired as if the image was loaded, but nothing is displayed.
When I investigate the HTML, it seems that the image has the correct URL, but has a background colour of pink (usually it is transparent), and I can’t see anything useful in the event object.
Any ideas?