From: Edwin C. <com...@gm...> - 2009-03-18 20:10:06
|
Hi Farrukh, Setting a timeout on a WMS server from the client doesn't sound to me like something that will work. It is certainly not a standard WMS parameter. Outside that, the WMS call could be routed over a proxy that sets it's own time-outs, so even if the WMS server would allow setting time-outs, a proxy could still intervene IMHO. As far as I can tell, the second option would be more interesting to look at. I know that you can pass an array of url's to optimize tile loading: http://trac.openlayers.org/wiki/OpenLayersOptimization I don't know if OL will use the urls that work if others fail. In principle this is possible because all layers are html img elements at their core and img elements fire an onload event when the image is downloaded. http://www.htmlcodetutorial.com/images/_IMG_onLoad.html Therefore it is possible to track the time from the request to the onload event, and when it exceeds a certain time limit another url could be tried for the same picture. Greetings, Edwin 2009/3/18 Farrukh Najmi <fa...@we...> > > I just spent a few hours tracking down a problem that turned out to be > an unresponsive WMS server at <http://labs.metacarta.com/wms-c/Basic.py>. > > I was wondering if there is a way to set a timeout on WMS server > connection when doing a "new WMS(...)" call. > Also is there a way to set a set of alternate WMS servers if the primary > WMS server fails to respond within a set timeout? > > Thanks for any advice. > > -- > Regards, > Farrukh > > Web: http://www.wellfleetsoftware.com > > > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > |