ESRI.ArcGIS.ADF.IMS | |
Image Property | |
See Also Example |
ESRI.ArcGIS.ADF.IMS.Carto Namespace > View Class : Image Property |
Visual Basic (Declaration) | |
---|---|
Public ReadOnly Property Image As CartoImage |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public CartoImage Image {get;} |
C# | Copy Code |
---|---|
CartoImage resultImage = mapView.Draw(); |
Visual Basic | Copy Code |
---|---|
Dim resultImage As CartoImage = mapView.Draw() |
When one of the view's methods are used that generate a map image, such as Draw or Zoom, the reference to the map image is stored in the CartoImage object in this property. Use the CartoImage.Url property to retrieve the URL string for the image location.
Note that the Zoom, Pan, CenterAt and Draw methods all cause the ArcIMS server to generate an output image. If several of these methods are used in a single client map operation, it may be wasting server resources to draw multiple maps. An alternative would be to calculate the extent of the map needed and use Draw(Envelope), or set the MapView's extent prior to drawing. Another option uses Zoom(double, Point) to simultaneously re-center and zoom the map.
Also note that the MimeData and MimeId of CartoImage will be null when drawing with a MapView or LayoutView. Instead, use the Url property of CartoImage to retrieve the URL location of the map or file.