ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • ArcGIS Pro
  • ArcMap
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • ArcGIS Pro
  • ArcMap
Esri
English
  • English
  • Deutsch
  • Español
  • Français
  • 日本語
  • Русский
  • 简体中文
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions
  • Tools
  • Tool reference
  • Server toolbox
  • Printing toolset
  • Back to Top
  • An overview of the Server toolbox
  • Server toolbox licensing
  • Server toolbox history
  • Caching toolset

    • An overview of the Caching toolset
    • Convert Map Server Cache Storage Format
    • Create Map Server Cache
    • Delete Map Server Cache
    • Export Map Server Cache
    • Generate Map Server Cache Tiling Scheme
    • Import Map Server Cache
    • Manage Map Server Cache Scales
    • Manage Map Server Cache Status
    • Manage Map Server Cache Tiles
    • Upgrade Map Server Cache Storage Format

    Data Extraction toolset

    • An overview of the Data Extraction toolset
    • Extract Data
    • Extract Data and Email Task
    • Extract Data Task
    • Send Email With Zip File Attachment

    Printing toolset

    • An overview of the Printing toolset
    • Export Web Map
    • Get Layout Templates Info

    Publishing toolset

    • An overview of the Publishing toolset
    • MXD to Web map
    • Sign In To Portal
    • Sign Out From Portal
    • Stage Service
    • Upload Service Definition

    Export Web Map

    This ArcGIS 10.6 documentation has been archived and is no longer updated. Content and links may be outdated. See the latest documentation.
    • Summary
    • Usage
    • Syntax
    • Environments
    • Licensing information

    Summary

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

    Usage

    • The input for this tool is a piece of text in JavaScript object notation (JSON) format describing the layers, graphics, and other settings in the web map. The JSON must be structured according to the ExportWebMap specification.

    • This tool is shipped with ArcGIS Server to support web services for printing, including the preconfigured service named PrintingTools. The ArcGIS web APIs for JavaScript, Flex, and Silverlight use the PrintingTools service to generate images for effortless map printing.

    • For advanced printing scenarios, for example swapping out service layers with local vector data, creating map books, use the ConvertWebMapToMapDocument() function in the Python arcpy.mapping module instead of this tool. To make your Python script available to a web application, expose the script through an ArcGIS Server geoprocessing service. For more information, see Printing in web applications.

    Syntax

    ExportWebMap_server (Web_Map_as_JSON, Output_File, {Format}, {Layout_Templates_Folder}, {Layout_Template})
    ParameterExplanationData Type
    Web_Map_as_JSON

    A JSON representation of the state of the map to be exported as it appears in the web application. See the ExportWebMap specification to understand how this text should be formatted. The ArcGIS web APIs (for JavaScript, Flex, Silverlight, and so on) allow developers to easily get this JSON string from the map.

    String
    Output_File

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

    File
    Format
    (Optional)

    The format in which the map image for printing will be delivered.

    • PNG8 —8-bit Portable Network Graphics (PNG8). This is the default.
    • PDF —Portable Document Format (PDF)
    • PNG32 —32-bit Portable Network Graphics (PNG32)
    • JPG — Joint Photographic Experts Group (JPG)
    • GIF — Graphics Interchange Format (GIF)
    • EPS — Encapsulated PostScript (EPS)
    • SVG —Scalable Vector Graphics (SVG)
    • SVGZ —Compressed Scalable Vector Graphics (SVGZ)
    Note:

    The background of the output file is always opaque.

    String
    Layout_Templates_Folder
    (Optional)

    Full path to the folder where map documents (.mxd files) to be used as layout templates are located. The default location is <install_directory>\Templates\ExportWebMapTemplates.

    Folder
    Layout_Template
    (Optional)

    Either a name of a template from the list or the keyword MAP_ONLY. When MAP_ONLY is chosen or an empty string is passed in, the output map does not contain any page layout elements like titles, legends, or scale bars, for example.

    Note:

    If you need information such as page size, map size, and user defined text element for these layout templates, use Get Layout Templates Info.

    String

    Environments

    This tool does not use any geoprocessing environments.

    Licensing information

    • ArcGIS Desktop Basic: Yes
    • ArcGIS Desktop Standard: Yes
    • ArcGIS Desktop Advanced: Yes

    Related topics

    • An overview of the Printing toolset
    • Printing in web applications

    ArcGIS Desktop

    • Home
    • ArcGIS Pro
    • ArcMap
    • Documentation
    • Support

    ArcGIS

    • ArcGIS Online
    • ArcGIS Desktop
    • ArcGIS Enterprise
    • ArcGIS Platform
    • ArcGIS Developer
    • ArcGIS Solutions
    • ArcGIS Marketplace

    About Esri

    • About Us
    • Careers
    • Esri Blog
    • User Conference
    • Developer Summit
    Esri
    Copyright © 2019 Esri. | Privacy | Legal