HTML Popup (Feature Service)

Description

The htmlPopup resource provides details about the HTML pop-up authored by the user using ArcGIS for Desktop.

This resource is available when a layer resource's htmlPopupType is not esriServerHTMLPopupTypeNone.

Request parameters

Parameter

Details

f

Description: The response format. The default response format is html.

Values: html | json

gdbVersion

//This option was added at 10.1.

Description: Geodatabase version to query. This parameter applies only if the isDataVersioned property of the layer is true. If this is not specified, query will apply to the published map’s version.

Syntax: gdbVersion=<version>

Example: gdbVersion=SDE.DEFAULT

Example usage

Example 1: http://services.myserver.com/lidGgNLxw9LL0SbI/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/1/1/htmlPopUp

JSON response syntax

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

JSON response example

{
  "htmlPopupType" : "esriServerHTMLPopupTypeAsHTMLText",
  "content": "A <b>Sample HTML</b> pop up." 
}

9/13/2017