laptop and a wrench

Bogue

Refresh is incomplete and data disappears when dynamically updating a point layer (GPS data) using a timer over a map document containing a map service on AxMapControl.

Dernière publication: August 25, 2014 ArcGIS Engine
Numéro d’ID de bogue NIM058959
EnvoiJuly 12, 2010
Dernière modificationJune 5, 2024
S’applique àArcGIS Engine
Version trouvée10.0
Langue du programmeC#
Système d’exploitationWindows OS
Version du système d’exploitationXP
Version de correctionN/A
StatutFixed

Solution de contournement

The workaround for this issue is to change the code for the drawing of the custom layer. This avoids the problem and will ultimately improve the overall performance of the application:1. Set the Layer.Cached property to true.2. Get the ScreenCacheId of the newly cached layer.short cacheId = axMapControl1.ActiveView.get_ScreenCacheID(esriViewDrawPhase.esriViewGeography, featureLayer);3. Refresh only that cache:m_mapControl.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeography, cacheId, null);For even better performance use IViewRefresh instead.

Étapes pour reproduire

ID de bogue: NIM058959

Logiciel:

  • ArcGIS Engine

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