Hello,
I’m trying to export a map image from a MapImageLayer and separately a TileLayer using ESRI JavaScript V4.30. I have a number of old V3.x JavaScript apps I’m trying to migrate to V4.x, these old apps currently request exportMapImage from the map services in question (hosted on ArcGIS Server 11.1) which returns the url of the exported map image like so:
MyMapService.exportMapImage(params, function (img) {
//Do something with img.href
});
Above is the working V3.x code where params is new esri.layers.ImageParameters() defining the output format, bbox, height and width. The exportMapImage generates the image (for example a png) on the server, returning the url of its location so I can then grab it and use it within my apps.
I’m struggling to interpret the V4.x reference to find an equivalent, I admit that for my skill level I find the API reference a little thin on description, examples and samples which is making it difficult for me. I’ve spent a lot of time trying to work it out myself before coming here, so if someone has the answer, perhaps with example code, it would help me a great deal.
Thank you.