Hi people, i need to know how could i know when my wms server is down, because i need to show the user a message to kotificate him about the problem, but, for example i have this code that work perfectly:

map.events.on({
     "zoomend" : function (e) {
                scaleCombo.setValue(map.getScale());
          if (this.getZoom()<  2) {
                
                                zoomtoggle.onCtrlDeactivate();
                                
                                aprotegidas.setVisibility(false);
                                municipios.setVisibility(false);
                                provincias.setVisibility(true);
                                ferreas.setVisibility(false);
                                autopistas.setVisibility(false);
                                l110.setVisibility(false);
                                l220.setVisibility(false);
                                s220.setVisibility(false);
                                s110.setVisibility(false);
                                vlayerMunicipios.setVisibility(true);
                                asentamientos.setVisibility(false);
                                manzanas.setVisibility(false);
                                carreteras.setVisibility(false);
                                
                                if ( vlayerMunicipios.visibility == false )
                                        {
                                        inventario.setVisibility(true);
                                        vlayer.setVisibility(true);
                                        
                                        
                                        
tree.getRootNode().eachChild(function(n){
                    n.enable();
                                        });
                                        selectvlayerMunicipios.deactivate();
                                        modifyControl.activate();
                                        
tree.getSelectionModel().select(tree.getRootNode().item(2), null, true);
                                        
                                        }
                                        else
                                        {
                                        inventario.setVisibility(false);
                                        vlayer.setVisibility(false);
                                        
                                        
tree.getRootNode().eachChild(function(n){
                    n.enable();
                                        });
                                        selectvlayerMunicipios.activate();
                                        modifyControl.deactivate();
                                        selectvlayerMunicipios.unselectAll();
                                        
tree.getSelectionModel().select(tree.getRootNode().item(2), null, true);
                                        }                                       
                                                                
          }}
});

//--------------------------------------------------------------------------------------------------
i need to know when the wms server is down when the map "zoomend" , please help 
me, thanks.


--

Este mensaje le ha llegado mediante el servicio de correo electronico que 
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema 
Nacional de Salud. La persona que envia este correo asume el compromiso de usar 
el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to