laptop and a wrench

Bug

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

Last Published: August 25, 2014 ArcGIS Server (.NET)
Bug ID Number NIM046855
SubmittedJuly 14, 2009
Last ModifiedApril 2, 2025
Applies toArcGIS Server (.NET)
Version found9.3.1
Operating SystemWindows OS
Operating System Version2003
StatusWill Not Be Addressed

Additional Information

No Public Explanation

Workaround

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

Steps to Reproduce

Bug ID: NIM046855

Software:

  • ArcGIS Server (.NET)

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options