Re-centers the map to a specified map point.
Syntax
Visual Basic (Declaration) | |
---|
Public Overloads Overridable Function CenterAt( _
ByVal mapPoint As Point _
) As ESRI.ArcGIS.ADF.Web.CartoImage |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As View
Dim mapPoint As Point
Dim value As ESRI.ArcGIS.ADF.Web.CartoImage
value = instance.CenterAt(mapPoint) |
C# | |
---|
public virtual ESRI.ArcGIS.ADF.Web.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 Basic | Copy Code |
---|
mapView.CenterAt(New Point(20, 40)) |
Remarks
Requirements
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
See Also