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




geometry
Geometry to zoom to.
Zooms to an extent of an ADF geometry.

Syntax

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

Parameters

geometry
Geometry to zoom to.

Remarks

If the map is using a cached resource, the map will zoom to a level that ensures it's in the view. If you pass in a point or object with a zero extent, the map will only center at the point without changing scale.

See Also

© 2010 All Rights Reserved.