laptop and a wrench

Bug

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.

Last Published: August 25, 2014 ArcGIS Engine
Bug ID Number NIM058959
SubmittedJuly 12, 2010
Last ModifiedJune 5, 2024
Applies toArcGIS Engine
Version found10.0
Program languageC#
Operating SystemWindows OS
Operating System VersionXP
Version FixedN/A
StatusFixed

Workaround

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.

Steps to Reproduce

Bug ID: NIM058959

Software:

  • ArcGIS Engine

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options