![]() ![]() |
ESRI.ArcGIS.ADF.Web.UI.WebControls | |
Zoom(Double,Point) Method | |
See Also Send Feedback |
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.
Visual Basic (Declaration) | |
---|---|
Public Overloads Sub Zoom( _ ByVal factor As Double, _ ByVal centerPoint As ESRI.ArcGIS.ADF.Web.Geometry.Point _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Map Dim factor As Double Dim centerPoint As ESRI.ArcGIS.ADF.Web.Geometry.Point instance.Zoom(factor, centerPoint) |
C# | |
---|---|
public void Zoom( double factor, ESRI.ArcGIS.ADF.Web.Geometry.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.
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).
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family