FRAMES | NO FRAMES Description | Parameters | Examples | Response
HTML Popup
URL http://<dynamic-feature-url>/htmlPopup
Parent Resource Feature
Required Capability Query

Description

The htmlPopup resource provides details about the HTML popup authored by the user using ArcGIS Desktop.

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

Resource Hierarchy

htmlpopup

Parameters

Parameter Details
layer // Required parameter

Description: Use this parameter to define a "dynamic layer". Only dynamic map layers are supported.

Note:
  • Use "gdbVersion" on dynamic map layer definition to specify an alternate geodatabase version.
Syntax:
{
    "id": <layerOrTableId>, // optional
    "source": <layer source>, // only dynamic map layers are supported
}
Example:
{
  "id": 101,
  "source":
  {
    "type": "mapLayer",
    "mapLayerId": 0,
    "gdbVersion": "SDE.DynamicLayers"
  }
}
f Description: The response format. The default response format is html.

Values: html | json

Example Usage

Example 1:

http://servicesbeta2.esri.com/arcgis/rest/services/Census/MapServer/dynamicLayer/1/htmlPopup?layer={"id":101,"source":{"type":"mapLayer","mapLayerId":3}}&where=1=1&f=pjson

JSON Response Syntax

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

JSON Response Example

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