laptop and a wrench

Erro

Unable to restrict zoom to Full Extent to the extent of specific customer data.

Última Publicação: August 25, 2014 ArcGIS Server (.NET)
Número de ID do Erro NIM046855
EnviadoJuly 14, 2009
Última ModificaçãoApril 2, 2025
Aplica-se àArcGIS Server (.NET)
Versão encontrada9.3.1
Sistema OperacionalWindows OS
Versão do Sistema Operacional2003
StatusWill Not Be Addressed

Informações Adicionais

No Public Explanation

Solução Provisória

The behavior reported here is by design. The customers data is in WGS84 and that matches the coordinate system of ArcGIS Online. When you cache the local service and overlay it on ArcGIS Online, the scale levels of the two services will be unioned together and that is why there are more than 18 scale levels displayed in the ZoomLevel control. Clicking FullExtent in this situation will change the extent to the unioned extent. The California/Portland/USA_Data services are not in WGS84. When you overlay these services on top of ArcGISOnline and set the local service as the primary map resource, the ZoomLevel will only display the scale levels of the local service and dynamic images will be generated for the ArcGISOnline layer. Navigation, including the FullExtent command, will be restricted to the scale levels of the locally cached service.If you want overlay a cached service (that is in WGS84) on top of ArcGISOnline and have the FullExtent command only zoom to the extent of your cached service, please implement this code:1) In Visual Studio, open the application's Default.aspx file. 2) Find the markup for Toolbar1. If the application has not been customized, the markup begins on line 71. 3) If necessary, add the attribute OnCommandClick to the markup and assign it a value of "Toolbar1_CommandClick." If this is added to the end of the first line of the Toolbar's markup, that line will appear as follows: <esri:Toolbar ID="Toolbar1" runat="server" BuddyControlType="Map" Group="Toolbar1_Group" Height="28px" OnCommandClick="Toolbar1_CommandClick" 4) Open the Default page's code-behind file, Default.aspx.cs. 5) Inside the closing bracket of the _Default class definition, on line 204, insert the following method: protected void Toolbar1_CommandClick(object sender, ToolbarCommandClickEventArgs toolbarCommandClickEventArgs){ if (toolbarCommandClickEventArgs.CommandName == "MapFullExtent") { Map1.CallbackResults.Clear(); Map1.Zoom(Map1.PrimaryMapResourceInstance.MapInformation.FullExtent); }}

Etapas para Reproduzir

ID do Erro: NIM046855

Software:

  • ArcGIS Server (.NET)

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