[OpenLayers-Users] detection of layer loading success/fail
François Van Der Biest
f.vanderbiest at gmail.com
Tue Feb 17 04:52:59 EST 2009
Hi Stephane
Have a look at OpenLayers.Util.onImageLoadError in Util.js
You may want to override it ?
F.
2009/2/11 <stephane.poirier at usherbrooke.ca>
> 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
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090217/2a048bbf/attachment.html
More information about the Users
mailing list