Redraws the map with the specified map Extent.
Syntax
Visual Basic (Declaration) | |
---|
Public Overloads Overridable Function Draw( _
ByVal newExtent As Envelope _
) As ESRI.ArcGIS.ADF.Web.CartoImage |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As View
Dim newExtent As Envelope
Dim value As ESRI.ArcGIS.ADF.Web.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
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