ESRI.ArcGIS.ADF.Web.UI.WebControls
Zoom(Double) Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > Map Class > Zoom Method : Zoom(Double) Method




factor
Double value greater than zero. Factor above 1 zooms the map in, between 0 and 1 zooms out.
Zooms the map by the specified zoom factor.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Zoom( _
   ByVal factor As Double _
) 
Visual Basic (Usage)Copy Code
Dim instance As Map
Dim factor As Double
 
instance.Zoom(factor)
C# 
public void Zoom( 
   double factor
)

Parameters

factor
Double value greater than zero. Factor above 1 zooms the map in, between 0 and 1 zooms out.

Remarks

The zoom factor must be greater than zero. A division-by-zero error will occur if the factor is zero. Unpredictable results may occur if the zoom factor is less than zero.

The greater the zoom factor, the more the map will zoom in. The closer the zoom factor is to zero (e.g., 0.001), the more the map will zoom out. If the zoom factor is one, the map scale will not change. The map is zoomed by the inverse of the zoom factor, which is used as a proportion of the current extent for contracting/expanding the extent.

If the map uses a tiling scheme based on a cached map service, then the map will zoom by one level: in if the zoomFactor is greater than one (1), out if the zoomFactor is less than one (1).

See Also

© 2010 All Rights Reserved.