How To: Execute a Export Web Map task operation from the REST endpoint
The Export Web Map task is an operation of the PrintingTools geoprocessing service which takes the state of a web application and returns either a page layout or map image of the specified area of interest in raster or vector format. Refer to ArcGIS Server: The PrintingTools service and ArcGIS REST API: Export Web Map Task for more information.
Executing the Export Web Map task through the REST endpoint is an effective way to confirm that the PrintingTools geoprocessing service, or any custom print service, is working as expected prior to consuming it within a web application.
- Access the Execute Web Map task operation from the REST endpoint:
- Enter values for the Web Map as JSON, Format and Layout Template parameters. A sample web map as JSON can be found below:
Note: The following JSON code section does not work if it is formatted. Starting in 10.6, print services do not accept formatted JSON. However, if publishing a print service from ArcMap (with the Export Web Map geoprocessing tool) on a 10.6 or above server, formatted JSON can be used.
This sample is configured to consume the Sample World Cities map service:
- Execute the task.
Last Published: 7/29/2021
Article ID: 000012690
Software: ArcGIS GIS Server 10.1 ArcGIS Server 10.9, 10.8.1, 10.8, 10.7.1, 10.7, 10.6.1, 10.6, 10.5.1, 10.5, 10.4.1, 10.4, 10.3.1, 10.3, 10.2.2, 10.2.1, 10.2, 10.1, 10