${iServerJava6R_GetLayersInfoService_Title}

${iServerJava6R_GetLayersInfoService_Description}

Inheritance: SuperMap.Web.Service.ServiceBase
        public SetLayerStatusTest( )
        {
            InitializeComponent();

            layersStatus = new List<LayerStatus>();
            layer = new TiledDynamicRESTLayer
            {
                Url = url ,
                EnableServerCaching = false ,
            };
            this.MyMap.Layers.Add(layer);

            //获取图层信息
            GetLayersInfoService getInfoServer = new GetLayersInfoService(url);
            getInfoServer.ProcessAsync();
            getInfoServer.ProcessCompleted += new EventHandler<GetLayersInfoEventArgs>(getInfoServer_ProcessCompleted);
            getInfoServer.Failed += new EventHandler<SuperMap.Web.Service.ServiceFailedEventArgs>(getInfoServer_Failed);
        }
 private void SwitchLayersInfo(string url, string layerid)
 {
     GetLayersInfoService layerServices = new GetLayersInfoService(url);
     layerServices.ProcessAsync(layerid);
     layerServices.ProcessCompleted += new EventHandler<GetLayersInfoEventArgs>(layerServices_ProcessCompleted);
 }