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




factor
Double value greater than zero. Factor above 1 zooms the map in, between 0 and 1 zooms out.
centerPoint
New center point for the map, in map coordinates.
Zooms the map based on a zoom factor and recenters it at the input point.

Syntax

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

Parameters

factor
Double value greater than zero. Factor above 1 zooms the map in, between 0 and 1 zooms out.
centerPoint
New center point for the map, in map coordinates.

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.