Redraws the map with the specified map Extent.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As View
Dim newExtent As Envelope
Dim value As CartoImage
value = instance.Draw(newExtent)
|
Parameters
- newExtent
- Extent at which the Map will be redrawn.
Return Value
New map image with input extent, in the form of a CartoImage object. Use
CartoImage.Url to retrieve the image's URL.
Example
This example defines a new envelope and uses it in drawing the map.
C# | Copy Code |
---|
Envelope newExtent = new Envelope(10, 30, 30, 50); CartoImage resultImage = mapView.Draw(newExtent); imgMap.ImageUrl = resultImage.Url; |
Visual Basic | Copy Code |
---|
Dim newExtent As New Envelope(10, 30, 30, 50)
Dim resultImage As CartoImage = mapView.Draw(newExtent)
imgMap.ImageUrl = resultImage.Url
|
Remarks
See Also