[OpenLayers-Dev] Event when a tile fails to load

Karsten Pihl kpo.carlbro at gmail.com
Wed Apr 20 08:32:43 EDT 2011


When a tile fails to load the OpenLayers.Util.onImageLoadError takes
care of handling the error and the “loadend” event is called without
any indication on if one or more tiles are missing.

Attached patch add support for layer events when a tile has failed
loading. When a single tile is missing it trigger the event
“loadwarning” to indicate that something is wrong with this layer.
When all the tiles in a layer are missing it trigger the event

The patch includes an update to the event.html example.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: layerload_event.patch
Type: text/x-diff
Size: 4702 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20110420/e3d9e8a2/layerload_event.bin

More information about the Dev mailing list