Re: [OpenLayers-Users] Catching WMS Exceptions

2009-10-15 Thread bartvde
Hi, check out OpenLayers.Util.onImageLoadError Best regards, Bart > Hi, > > I use GeoServer as WMS service provider. Does exist the possibility to add > a > listener to the OpenLayers.Layer.WMS > object in order to catch the 'onerror' event ? I noticed that the > 'onerror' > event is not present

Re: [OpenLayers-Users] Catching WMS Exceptions

2009-10-15 Thread Tobia Di Pisa
Hi, I use GeoServer as WMS service provider. Does exist the possibility to add a listener to the OpenLayers.Layer.WMS object in order to catch the 'onerror' event ? I noticed that the 'onerror' event is not present in the OpenLayers.Map. Best regards, Tobia Di Pisa 2009/10/15 > Hi, > > I don

Re: [OpenLayers-Users] Catching WMS Exceptions

2009-10-15 Thread bartvde
Hi, I don't think you can currently. You can use onerror of the img, but it won't give you the contents. A way would be loading the images through AJAX, which has disadvantages as well (same origin policy and needs changes to OpenLayers). Maybe the new WMS POST layer has a facility for this, but

[OpenLayers-Users] Catching WMS Exceptions

2009-10-15 Thread Tobia Di Pisa
Hi all, I have to effect the WMS requests specifying as parameter ' exceptions: "application/vnd.ogc.se_xml" ' insteed ' exceptions: "application/vnd.ogc.se_inimage" '. How can I catch the server response in the case that the exception is verified? Regards, Tobia Di Pisa _