HTML Popup (Map Service/Layer)


The htmlPopup resource provides details about the HTML pop-up authored by the user using ArcMap and ArcGIS Pro. This resource is available when a layer resource's htmlPopupType is not esriServerHTMLPopupTypeNone.

New in 10.1

Support for the gdbVersion parameter was added. Use this parameter to specify the geodatabase version to query.

Request parameters




Geodatabase version to query. This parameter applies only if the hasVersionedData property of the service and isDataVersioned property of the layers queried are true.

If this is not specified, the query will apply to the published map's version.

gdbVersion=<geodatabase version>

The response format. The default response format is html.

Values: html | json | pjson

Example usage

Below is a sample request URL used to access the htmlPopup resource:

JSON Response syntax

  "htmlPopupType": "<esriServerHTMLPopupTypeNone | esriServerHTMLPopupTypeAsURL | esriServerHTMLPopupTypeAsHTMLText>",
  "content": "<htmlContent>"

JSON Response example

  "htmlPopupType": "esriServerHTMLPopupTypeAsHTMLText",
  "content": "A Sample HTML pop up."