MapCircleEventArgs and CircleEventArgs do not report the right Screen and Map radius.
上次发布: August 25, 2014No 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);}