ESRI.ArcGIS.ADF.IMS
Zoom(Double,Point) Method
See Also 
ESRI.ArcGIS.ADF.IMS.Carto Namespace > View Class > Zoom Method : Zoom(Double,Point) Method




scaleFactor
Positive to zoom-in, negative to zoom-out.
centerPoint
Map's new center point.
Zooms to designated center point with a specified scale factor.

Syntax

Visual Basic (Declaration) 
Public Overloads Overridable Function Zoom( _
   ByVal scaleFactor As Double, _
   ByVal centerPoint As Point _
) As CartoImage
Visual Basic (Usage)Copy Code
Dim instance As View
Dim scaleFactor As Double
Dim centerPoint As Point
Dim value As CartoImage
 
value = instance.Zoom(scaleFactor, centerPoint)
C# 
public virtual CartoImage Zoom( 
   double scaleFactor,
   Point centerPoint
)

Parameters

scaleFactor
Positive to zoom-in, negative to zoom-out.
centerPoint
Map's new center point.

Return Value

New zoomed map image, in the form of a CartoImage object. Use CartoImage.Url to retrieve the image's URL.

Remarks

See Zoom(double) for discussion of how scaleFactors work with zooming in or out. This method allows zooming and re-centering the map in one operation. Since all zoom and pan methods cause the ArcIMS server to generate a map image, using this method can save server resources by limiting the number of images drawn.

Any Zoom, Pan, CenterAt or Draw method which changes the map extent also changes the map extent for the MapView.

See Also

© 2010 All Rights Reserved.