laptop and a wrench

Erro

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

Última Publicação: August 25, 2014 No Product Found
Número de ID do Erro NIM036015
EnviadoJune 11, 2008
Última ModificaçãoJune 5, 2024
Aplica-se àNo Product Found
Versão encontrada9.3
Idioma do programaC#
Versão FixaN/A
StatusFixed

Solução Provisória

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);}

Etapas para Reproduzir

ID do Erro: NIM036015

Software:

  • No Product Found

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download