laptop and a wrench

Erro

Edits to layerdefinitions are not being saved consistently for MapResourceItem.

Última Publicação: August 25, 2014 ArcGIS Server (.NET)
Número de ID do Erro NIM039011
EnviadoOctober 2, 2008
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Server (.NET)
Versão encontrada9.3
StatusWill Not Be Addressed

Informações Adicionais

No Public Explanation

Solução Provisória

Copy and paste the following code snippet in the Page_Load part. Remove everything in the LayerDefinitions column in the MapReourceManager control.=========================================== if (!MapResourceManager1.Initialized) MapResourceManager1.Initialize(); LayerDefinitionCollection layDesCol = (LayerDefinitionCollection)MapResourceManager1.ResourceItems[0].LayerDefinitions; for (int i = 0; i < layDesCol.Nodes.Count; i++) { if (layDesCol.Nodes[i].Text == "States") // here "States" is the layer name, replace with your layer name which you want to customize { LayerDefinition layDef = (LayerDefinition)layDesCol.Nodes[i].Data; layDef.LayerFormat.Fields[3].Visible = false; layDef.LayerFormat.Fields[4].Visible = false; layDef.LayerFormat.Fields[5].Visible = false; MapResourceManager1.ResourceItems[0].UpdateLayerDefinitions(); } }===========================================

Etapas para Reproduzir

ID do Erro: NIM039011

Software:

  • ArcGIS Server (.NET)

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