{ System.out.println("load status:" + wmsService.getLoadStatus().toString()); // get the layer infos List layerInfos = wmsService.getServiceInfo().getLayerInfos(); for(WmsLayerInfo layerInfo : layerInfos) { System.out.println("layer info title : " + layerInfo.getTitle()); // for each layer info, get the sub layer infos List wmsSubLayerInfos = layerInfo.getSublayerInfos(); // list the layers for information only for(WmsLayerInfo subLayerInfo : wmsSubLayerInfos) { System.out.println("sub layer " + subLayerInfo.getTitle()); } // add the layer from the sub layers WmsLayer wmsLayer = new WmsLayer(wmsSubLayerInfos); wmsLayer.loadAsync(); wmsLayer.addDoneLoadingListener(() -> { System.out.println("layer load status : " + wmsLayer.getLoadStatus()); System.out.println("layer uri : " + wmsLayer.getUri()); }); map.getOperationalLayers().add(wmsLayer); } });"/>
laptop and a wrench

Error

The Web Map Service (WMS) layer is not visible when instantiating the layer from a collection of WMSLayerInfos.

Última publicación: April 20, 2018 ArcGIS Runtime SDK
Número de ID del error BUG-000113100
EnviadoApril 10, 2018
Última modificaciónJune 5, 2024
Relacionado conArcGIS Runtime SDK
Versión encontrada100.2.1
Sistema operativoWindows OS
Versión de sistema operativo7.0 64 Bit
EstadoWill Not Be Addressed

Información adicional

The code snippet below shows how to add the WMS service to an ArcGIS Runtime SDK application using the WMSLayerInfos. Please reach out to Esri Technical Support if the issue persists. // wms service //WmsService wmsService = new WmsService("URLtoWMSService?request=GetCapabilities&service=WMS"); // load the service wmsService.loadAsync(); wmsService.addDoneLoadingListener(() -> { System.out.println("load status:" + wmsService.getLoadStatus().toString()); // get the layer infos List layerInfos = wmsService.getServiceInfo().getLayerInfos(); for(WmsLayerInfo layerInfo : layerInfos) { System.out.println("layer info title : " + layerInfo.getTitle()); // for each layer info, get the sub layer infos List wmsSubLayerInfos = layerInfo.getSublayerInfos(); // list the layers for information only for(WmsLayerInfo subLayerInfo : wmsSubLayerInfos) { System.out.println("sub layer " + subLayerInfo.getTitle()); } // add the layer from the sub layers WmsLayer wmsLayer = new WmsLayer(wmsSubLayerInfos); wmsLayer.loadAsync(); wmsLayer.addDoneLoadingListener(() -> { System.out.println("layer load status : " + wmsLayer.getLoadStatus()); System.out.println("layer uri : " + wmsLayer.getUri()); }); map.getOperationalLayers().add(wmsLayer); } });

Pasos para reproducir

ID del error: BUG-000113100

Software:

  • ArcGIS Runtime SDK

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga