laptop and a wrench

Bogue

Edits to layerdefinitions are not being saved consistently for MapResourceItem.

Dernière publication: August 25, 2014 ArcGIS Server (.NET)
Numéro d’ID de bogue NIM039011
EnvoiOctober 2, 2008
Dernière modificationJune 5, 2024
S’applique àArcGIS Server (.NET)
Version trouvée9.3
StatutWill Not Be Addressed

Informations supplémentaires

No Public Explanation

Solution de contournement

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

Étapes pour reproduire

ID de bogue: NIM039011

Logiciel:

  • ArcGIS Server (.NET)

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement