Defines an image or a chart to be displayed in a popup window.
Referenced by: popupElement media, popupInfo
Properties
| Property | Details |
|---|---|
| altText | A string providing the alternate text for the media. |
| caption | A string caption describing the media. |
| refreshInterval | Refresh 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. |
| title | A string title for the media. |
| type | A string defining the type of media. Valid values:
|
| value | A 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" }}