<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">For any layers that descend from OpenLayers.Layer.Grid there is a tileerror event which you can listen for.<div><br></div><div>Best regards,</div><div>Bart</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>-- <br>Bart van den Eijnden<br>OpenGeo - <a href="http://opengeo.org/">http://opengeo.org</a><br>Expert service straight from the developers.</div><div><br></div></span><br class="Apple-interchange-newline">

</div>
<br><div><div>On Oct 18, 2012, at 7:55 PM, Rob Hyx <<a href="mailto:robhyx@gmail.com">robhyx@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello,<br><br>I have an OpenLayers map with several 'base layers', and by that I<br>mean I have a custom drop down implemented that allows toggling<br>between various WMS and ArcGIS layers for the base layer. Sometimes<br>the default layer returns pink tiles (the server issues a 500 error).<br>I want to be able to switch to the next one when this is not available<br>automatically. Does OpenLayers provide a way to do this, or would I<br>have to write some custom code and check whether or not I'm getting a<br>'png' back?<br><br>Thanks in advance!<br><br>-- <br>HYX<br><a href="http://hyx-music.com">http://hyx-music.com</a><br>_______________________________________________<br>Users mailing list<br>Users@lists.osgeo.org<br>http://lists.osgeo.org/mailman/listinfo/openlayers-users<br></blockquote></div><br></div></body></html>