{ 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

Bogue

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

Dernière publication: April 20, 2018 ArcGIS Runtime SDK
Numéro d’ID de bogue BUG-000113100
EnvoiApril 10, 2018
Dernière modificationJune 5, 2024
S’applique àArcGIS Runtime SDK
Version trouvée100.2.1
Système d’exploitationWindows OS
Version du système d’exploitation7.0 64 Bit
StatutWill Not Be Addressed

Informations supplémentaires

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); } });

Étapes pour reproduire

ID de bogue: BUG-000113100

Logiciel:

  • ArcGIS Runtime SDK

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement