HOW TO

Get parameters for the Export Map Image request in REST for a map service with dynamic layers

Last Published: April 25, 2020

Summary

It is possible to allow clients of the server, such as the ArcGIS Web APIs, to dynamically change the layer appearance and behavior of the map service when publishing a map service to the ArcGIS Server site.

Dynamic layer-enabled services within custom applications and test requests at REST allow users to preview the application. This can be done with the Export Map function. However, to perform the action, users are prompted to input parameters before submitting the request.

Procedure

To get the values for the parameters, modify the service in the ArcGIS Online Map Viewer and retrieve the final values from the browser's Developer Tools. Follow the steps below:

  1. In the REST page of the map service, select ArcGIS Online Map Viewer to view the map.

    User-added image
     
  2. In the Contents pane, if necessary, modify the appearance of the service, such as changing the style.

    User-added image

    User-added image

     
  3. Once the service is formatted as desired, open the browser's Developer tools and click the Network tab.
Note:
To open the Developers tools in Google Chrome, click the Customize and control Google Chrome icon (three horizontal bars in the upper right corner) and click More tools > Developer tools.
  1. Pan or zoom around the map to the desired area. The list of requests is populated.
  2. Click the export request.
  3. In the Headers tab, navigate to the Query String Parameters section. This section has most of the parameters required to perform a REST request for Export Map Image (POST).

    Get parameters from the Query String Parameters

    User-added image

Article ID: 000015441

Software:
  • ArcGIS Online
  • ArcGIS Server

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options