<div dir="ltr"><div>Hi.</div><div><br></div><div>I am working with OpenLayers 2. I am using the events "loadstart" and "loadend" from <a href="http://dev.openlayers.org/docs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.events">here</a>.</div>
<div><br></div><div>When I use OpenLayers.Layers.WMS, i want to have some kind of callback when there is a loading error. For example, when I enter an incorrect SLD filter, I want to have some feedback about the layer not being loaded correctly. Unfortunately, "loadend" doesn't provide this kind of error detection.</div>
<div><br></div><div>I already found <a href="http://lists.osgeo.org/pipermail//openlayers-users/2012-January/023772.html">this question</a> where someone else has the same problem.</div><div><br></div><div>In my searches, I have found <a href="http://trac.osgeo.org/openlayers/ticket/3265">this patch</a> for "loadfail", which I tried to apply on an uncompressed version of OpenLayers.</div>
<div><br></div><div>Unfortunately, it didn't work. I have load errors that aren't detected and I need to know if there are load fails/errors.</div><div><br></div><div>Could you put this event in a new fix of OpenLayers, please? If it is already there, how could I use it?</div>
<div><br></div><div>Thank you.</div><div><br></div><div>João</div></div>