require(["esri/layers/MapImage"], function(MapImage) { /* code goes here */ });
Description
(Added at v1.0)
Represents the data object for the dynamically generated map. This is returned after a successful export operation on
ArcGISDynamicMapServiceLayer and
Geoprocessor.getResultImage in the callback and in the event result. The MapImage class can also be used to create a geo-referenced image file for use with the
MapImageLayer.
Samples
Search for
samples that use this class.
Constructors
Properties
Constructor Details
Creates a new Map Image object.
Parameters:
<Object > options |
Required |
An object that defines the map image options. |
options
properties:
<Extent > extent |
Optional |
Specfiy an extent for the image. |
<String > href |
Optional |
Specify the url of the image. |
Sample:
require([
"esri/layers/MapImage", ...
], function(MapImage, ... ) {
var mi = new MapImage({
'extent': { 'xmin': -8864908, 'ymin': 3885443, 'xmax': -8762763, 'ymax': 3976997, 'spatialReference': { 'wkid': 3857 }},
'href': imageURL
});
...
});
Property Details
Requested image height in pixels.
URL to returned image. The image format must be of a type supported by the HTML img tag.
Known values: gif | jpg | png | bmp
Scale of requested dynamic map.
Requested image width in pixels.