Hi Stephane<br>Have a look at OpenLayers.Util.onImageLoadError in Util.js<br>You may want to override it ?<br>F.<br><br><div class="gmail_quote">2009/2/11 <span dir="ltr"><<a href="mailto:stephane.poirier@usherbrooke.ca">stephane.poirier@usherbrooke.ca</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font size="2" face="Arial">
<div><span>Hi
All,</span></div>
<div><span></span> </div>
<div><span>How can one
detect if a given server pushes the map or not? Here below is the line I use to
get a layer from NASA server and need to switch to alternate layer server
when it is down.</span></div>
<div><span></span> </div>
<div><span>var nasaLayer =
new OpenLayers.Layer.WMS( "NASA WMS",</span><span>"<a href="http://wms.jpl.nasa.gov/wms.cgi" target="_blank">http://wms.jpl.nasa.gov/wms.cgi</a>?", {layers:
'BMNG',</span><span>format:'image/png'},</span><span>{isBaseLayer: true});</span></div>
<div><span></span> </div>
<div><span>Thanks,</span></div>
<div><span></span> </div>
<div><span>Stephane</span></div>
<div><span></span> </div>
<div><span></span> </div>
<div><span></span> </div></font></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br>