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)
|
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
See Also