laptop and a wrench

漏洞

MapCircleEventArgs and CircleEventArgs do not report the right Screen and Map radius.

上次发布: August 25, 2014 No Product Found
漏洞 ID 编号 NIM036015
已提交June 11, 2008
上次修改时间June 5, 2024
适用范围No Product Found
找到的版本9.3
编程语言C#
修正版本N/A
状态Fixed

解决办法

Derek on 7\30\8:Please reference the work around in KB 35305Access the MapCircleEventsArgs MapRadius property and perform additional calculations. To determine the correct map radius, divide the MapCircleEventsArgs MapRadius value by 4. To determine the correct screen radius, divide the MapCircleEventsArgs MapRadius value by 4 and then divide the result by the map to screen ratio (resolution). public void ServerAction(ESRI.ArcGIS.ADF.Web.UI.WebControls.ToolEventArgs args){ Map mmap = args.Control as Map; MapCircleEventArgs mcea = (MapCircleEventArgs)args; double maptoscreenratio = mmap.Extent.Width / mmap.ViewWidth; double mapradius = mcea.MapRadius / 4; double screenradius = (mcea.MapRadius / 4) / maptoscreenratio; System.Diagnostics.Debug.Print("Map To Screen Ratio: {0}", maptoscreenratio); System.Diagnostics.Debug.Print("Map Radius: {0} units)", mapradius); System.Diagnostics.Debug.Print("Screen Radius: {0} pixels)", screenradius);}

重现步骤

漏洞 ID: NIM036015

软件:

  • No Product Found

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项