HTML Popup (Feature Service)

URL:
https://<root>/<serviceName>/FeatureServer/<layerId>/<featureId>/htmlPopup
Methods:
GET
Required Capability:
Query
Version Introduced:
10.0

Description

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

Request parameters

ParameterDetails

gdbVersion

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

Syntax

1
gdbVersion=<version>

Example

1
gdbVersion=SDE.DEFAULT

f

The response format. The default response format is html .

Values: html | json | pjson

Example usage

The following is a sample request used to access the htmlPop resource:

1
https://machine.domain.com/webadaptor/rest/services/Hydrography/Watershed173811/FeatureServer/1/1/htmlPopUp?f=pjson

JSON Response syntax

1
2
3
4
{
  "htmlPopupType": "<esriServerHTMLPopupTypeNone | esriServerHTMLPopupTypeAsURL | esriServerHTMLPopupTypeAsHTMLText>",
  "content": "<htmlContent>"
}

JSON Response example

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

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close