[OpenLayers-Users] detection of layer loading success/fail

stephane.poirier at usherbrooke.ca stephane.poirier at usherbrooke.ca
Wed Feb 11 15:23:16 EST 2009


Hi All,

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.

var nasaLayer = new OpenLayers.Layer.WMS( "NASA WMS","http://wms.jpl.nasa.gov/wms.cgi?", {layers: 'BMNG',format:'image/png'},{isBaseLayer: true});

Thanks,

Stephane


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090211/90ed2cd2/attachment.html


More information about the Users mailing list