Redraws the map with the current information defined in the associated MapService object.
Syntax
Visual Basic (Declaration) | |
---|
Public Overloads Overridable Function Draw() As CartoImage |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As View
Dim value As CartoImage
value = instance.Draw()
|
Return Value
New redrawn map image, in the form of a CartoImage object. Use CartoImage.Url to
retrieve the image's URL.
Example
This example updates the extent of the map, then draws it and displays the
resulting image in an image control.
C# | Copy Code |
---|
Envelope newExtent = new Envelope(10, 30, 30, 50); mapView.Extent = newExtent; CartoImage resultImage = mapView.Draw(); imgMap.ImageUrl = resultImage.Url; |
Visual Basic | Copy Code |
---|
Dim newExtent As New Envelope(10, 30, 30, 50)
mapView.Extent = newExtent
Dim resultImage As CartoImage = mapView.Draw()
imgMap.ImageUrl = resultImage.Url
|
Remarks
See Also