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.
上次发布: August 25, 2014ArcGIS Engine
漏洞 ID 编号
NIM058959
已提交
July 12, 2010
上次修改时间
June 5, 2024
适用范围
ArcGIS Engine
找到的版本
10.0
编程语言
C#
操作系统
Windows OS
操作系统版本
XP
修正版本
N/A
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
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.