Bug
| Bug ID Number | NIM036015 |
|---|---|
| Submitted | June 11, 2008 |
| Last Modified | June 5, 2024 |
| Applies to | No Product Found |
| Version found | 9.3 |
| Program language | C# |
| Version Fixed | N/A |
| Status | Fixed |
Code:
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);
}
Bug ID: NIM036015
Software:
Get help from ArcGIS experts
Download the Esri Support App