{ 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

Erro

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

Última Publicação: April 20, 2018 ArcGIS Runtime SDK
Número de ID do Erro BUG-000113100
EnviadoApril 10, 2018
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Runtime SDK
Versão encontrada100.2.1
Sistema OperacionalWindows OS
Versão do Sistema Operacional7.0 64 Bit
StatusWill Not Be Addressed

Informações Adicionais

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

Etapas para Reproduzir

ID do Erro: BUG-000113100

Software:

  • ArcGIS Runtime SDK

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download