Create Map Image and:

Export Map as Image

This sample shows how to export the map canvas as an image which can be used in reports or emails. Note that this will only export the rendered map HTML canvas, other HTML elements, such as HTML markers and controls are not rendered on the image. This samples uses the open source Azure Maps Image Exporter module.