Defines an image or a chart to be displayed in a popup window.

Referenced by: popupElement media, popupInfo

Properties

PropertyDetails
altTextA string providing the alternate text for the media.
captionA string caption describing the media.
refreshIntervalRefresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled. If the property does not exist, it’s equivalent to having a value of 0. Only applicable when type is set to image.
titleA string title for the media.
typeA string defining the type of media.
Valid values:
  • barchart
  • columnchart
  • image
  • linechart
  • piechart
valueA value object containing information about how the image should be retrieved or how the chart should be constructed.
Must be one of the following values:

mediaInfo Example

{
"title": "Chart stats",
"type": "barchart",
"altText": "This chart shows statistics",
"caption": "For a better idea...",
"value": {
"fields": [
"relationships/0/Pledge"
],
"tooltipField": "relationships/2/Official"
}
}