laptop and a wrench

Error

Edits to layerdefinitions are not being saved consistently for MapResourceItem.

Última publicación: August 25, 2014 ArcGIS Server (.NET)
Número de ID del error NIM039011
EnviadoOctober 2, 2008
Última modificaciónJune 5, 2024
Relacionado conArcGIS Server (.NET)
Versión encontrada9.3
EstadoWill Not Be Addressed

Información adicional

No Public Explanation

Solución alternativa

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

Pasos para reproducir

ID del error: NIM039011

Software:

  • ArcGIS Server (.NET)

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga