laptop and a wrench

Erro

The fetchLegendInfoAsync method does not return any legend information.

Última Publicação: December 4, 2019 ArcGIS Runtime SDK
Número de ID do Erro BUG-000114472
EnviadoJune 5, 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

Legend information is being requested at a level in the service where there is no legend. The legends are in the sublayers which can be seen here for example: http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/0 Below is sample code to show how to iterate over the sublayers and access the legends: ArcGISMapImageLayer layer = new ArcGISMapImageLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer"); map.getOperationalLayers().add(layer); layer.loadAsync(); layer.addDoneLoadingListener(new Runnable() { @Override public void run() { // TODO Auto-generated method stub System.out.println("Layer loaded" + layer.getLoadStatus().toString()); //System.out.println("Layer loaded" + layer.getLoadError().getCause().toString()); SublayerList subLayerList = layer.getSublayers(); for (ArcGISSublayer subLayer : subLayerList) { System.out.println("sublayer name" + subLayer.getName()); ListenableFuture> future = subLayer.fetchLegendInfosAsync(); future.addDoneListener(()-> { try { List legendInfoList = future.get(); System.out.println(" - legend info size" + legendInfoList.size()); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (ExecutionException e) { // TODO Auto-generated catch block e.printStackTrace(); } }); }

Etapas para Reproduzir

ID do Erro: BUG-000114472

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