PrintMapWithSecured

Title  PrintMapWithSecured

Summary

Returns a printable page layout or basic map of a specified area of interest based on the state of a web app (for example, included services, layer visibility settings, and client-side graphics).


Usage

Syntax

Parameter Explanation
Web_Map_as_JSON

A JSON representation of the state of the map to be exported as it appears in the web app. See the ExportWebMap specification to understand how to format this text. ArcGIS API for JavaScript allows you to get this JSON string from the map.

Format (Optional)

Specifies the format in which the map image for printing will be delivered.PNG8—8-bit Portable Network Graphics (PNG8) will be used. This is the default.PDF—Portable Document Format (PDF) will be used.PNG32—32-bit Portable Network Graphics (PNG32) will be used.JPG— Joint Photographic Experts Group (JPG) will be used.GIF— Graphics Interchange Format (GIF) will be used.EPS— Encapsulated PostScript (EPS) will be used.SVG—Scalable Vector Graphics (SVG) will be used.SVGZ—Compressed Scalable Vector Graphics (SVGZ) will be used.AIX—Adobe Illustrator Exchange (AIX) will be used.TIFF—Tag Image File Format (TIFF) will be used.

Layout_Template (Optional)

The name of a template from the list or the keyword MAP_ONLY. When MAP_ONLY is used or an empty string is passed in, the output map will not contain any page layout elements such as title, legend, or scale bar.

env

dev | uat | prod | trn

outfilename

The output file name. The extension of the file depends on the Format parameter value.

Code Samples

Tags

Credits

Use limitations