popupInfo

July 19, 2019 ยท View on GitHub

Defines the look and feel of popup windows when a user clicks or queries a feature. See more information on popup information in ArcGIS clients.

cmn::3DSceneLayer, psl::3DSceneLayer

Properties

PropertyTypeDescription
titlestringA string that appears at the top of the popup window as a title
descriptionstringA string that appears in the body of the popup window as a description. It is also possible to specify the description as HTML-formatted content.
expressionInfos[]List of Arcade expressions added to the pop-up. See more information on supported in ArcGIS clients.
fieldInfos[]Array of fieldInfo information properties. This information is provided by the service layer definition. See more information on supported in ArcGIS clients.
mediaInfos[]Array of various mediaInfo to display. Can be of type image, piechart, barchart, columnchart, or linechart. The order given is the order in which it displays. See more information on supported in ArcGIS clients.
popupElements[]An array of popupElement objects that represent an ordered list of popup elements. See more information on supported in ArcGIS clients.

Examples

Example: popupInfo

 {
  "title": "Buildings",
  "mediaInfos": [],
  "description": "Buidlings on campus A.",
  "fieldInfos": [
    {
      "fieldName": "OBJECTID",
      "visible": true,
      "isEditable": false,
      "label": "OID"
    },
    {
      "fieldName": "Name",
      "visible": true,
      "isEditable": true,
      "label": "Name"
    }
  ],
  "popupElements": [
    {
      "text": "Buidlings on campus A.",
      "type": "text"
    },
    {
      "fieldInfos": [
        {
          "fieldName": "OBJECTID",
          "visible": true,
          "isEditable": false,
          "label": "OID"
        },
        {
          "fieldName": "Name",
          "visible": true,
          "isEditable": true,
          "label": "Name"
        }
      ],
      "type": "fields"
    }
  ],
  "expressionInfos": []
}