laptop and a wrench

Erro

The visibility of layers in IMapDescription gets corrupted after setting the extent in IMapDescription and calling the applyMapDescription method.

Última Publicação: February 10, 2015 No Product Found
Número de ID do Erro NIM006436
EnviadoJanuary 29, 2007
Última ModificaçãoJune 5, 2024
Aplica-se àNo Product Found
Versão encontrada9.2
Versão Fixa9.3
StatusFixed

Informações Adicionais

No Public Explanation

Solução Provisória

IMapServerObjects.RefreshSererObjects() function must be called twice to solve this particular problem.Here is the portion of code that fails at 9.2: //make the current map the same as the old map mapcurrent.clearLayers(); mapcurrent.clearMapSurrounds(); for(int i = originalMap.getLayerCount()-1 ; i >= 0 ; --i) mapcurrent.addLayer(originalMap.getLayer(i)); ((MapServer)server).refreshServerObjects();Here is the workaround solution: //making the current mapcurrent.ClearLayers(); mapcurrent.ClearMapSurrounds(); ((MapServer)server).RefreshServerObjects(); // refreshServerObject for (int i = originalMap.getLayerCount() - 1; i >= 0; --i) mapcurrent.AddLayer(originalMap.getLayer(i)); ((MapServer)server).RefreshServerObjects(); // refreshServerObject again

Etapas para Reproduzir

ID do Erro: NIM006436

Software:

  • No Product Found

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