laptop and a wrench

漏洞

The visibility of layers in IMapDescription gets corrupted after setting the extent in IMapDescription and calling the applyMapDescription method.

上次发布: February 10, 2015 No Product Found
漏洞 ID 编号 NIM006436
已提交January 29, 2007
上次修改时间June 5, 2024
适用范围No Product Found
找到的版本9.2
修正版本9.3
状态Fixed

附加信息

No Public Explanation

解决办法

IMapServerObjects.RefreshSererObjects() function must be called twice to solve this particular problem.Here is the portion of code that fails at 9.2: //make the current map the same as the old map mapcurrent.clearLayers(); mapcurrent.clearMapSurrounds(); for(int i = originalMap.getLayerCount()-1 ; i >= 0 ; --i) mapcurrent.addLayer(originalMap.getLayer(i)); ((MapServer)server).refreshServerObjects();Here is the workaround solution: //making the current mapcurrent.ClearLayers(); mapcurrent.ClearMapSurrounds(); ((MapServer)server).RefreshServerObjects(); // refreshServerObject for (int i = originalMap.getLayerCount() - 1; i >= 0; --i) mapcurrent.AddLayer(originalMap.getLayer(i)); ((MapServer)server).RefreshServerObjects(); // refreshServerObject again

重现步骤

漏洞 ID: NIM006436

软件:

  • No Product Found

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项