ESRI.ArcGIS.ADF.IMS
CenterAt(Point) Method
See Also  Example
ESRI.ArcGIS.ADF.IMS.Carto Namespace > View Class > CenterAt Method : CenterAt(Point) Method




mapPoint
The point on which you want the map re-centered.
Re-centers the map to a specified map point.

Syntax

Visual Basic (Declaration) 
Public Overloads Overridable Function CenterAt( _
   ByVal mapPoint As Point _
) As CartoImage
Visual Basic (Usage)Copy Code
Dim instance As View
Dim mapPoint As Point
Dim value As CartoImage
 
value = instance.CenterAt(mapPoint)
C# 
public virtual CartoImage CenterAt( 
   Point mapPoint
)

Parameters

mapPoint
The point on which you want the map re-centered.

Return Value

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

Example

This example re-centers the map at coordinates (20,40).
C#Copy Code
mapView.CenterAt(new Point(20, 40)); 

    
Visual BasicCopy Code
mapView.CenterAt(New Point(20, 40))

Remarks

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

Note that all zoom, pan, and re-center methods cause the server to generate a map, whether it is accessed or not. If the result of this method is not assigned to a CartoImage object, the image can be retrieved with the Image property of the view.

See Also

© 2010 All Rights Reserved.