A popup element that displays the media (images and charts) of a GeoElement in a popup. More...
| Header | #include <Media |
| Since | Esri |
| Inherits | Esri |
Public Functions
| Media | |
| virtual | ~ |
| QString | description() const |
| Esri | media() const |
| void | set |
| void | set |
| QString | title() const |
Detailed Description
The order in which images or charts are displayed in the popup is determined by the order of the PopupMedia objects in the media PopupMediaListModel. If you want to display a chart, you must create an image of the chart by calling PopupMedia::generateChartAsync(Esri::ArcGISRuntime::ChartImageParameters*, QObject*). Use the ChartImageParameters to specify the height and width of the ChartImage and whether it includes a legend.
Note that videos are only supported as attachments and can be viewed with AttachmentsPopupElement.
See also PopupElementType.
Member Function Documentation
[explicit] MediaPopupElement::MediaPopupElement (const QList<Esri::ArcGISRuntime::PopupMedia *> &media, QObject *parent = nullptr)
Creates a new media popup element with the given QList of PopupMedia.
- media - An QList of PopupMedia objects that define images and charts displayed in the popup window.
- parent - The optional parent QObject.
[override virtual noexcept] MediaPopupElement::~MediaPopupElement ()
Destructor.
QString MediaPopupElement::description() const
Returns a string value describing the element in detail. The value can be an empty string.
See also setDescription().
Esri::ArcGISRuntime::PopupMediaListModel *MediaPopupElement::media() const
Returns a QList of PopupMedia objects that define images and charts displayed in the popup window.
void MediaPopupElement::setDescription (const QString &description)
Sets the description to description.
See also description.
void MediaPopupElement::setTitle (const QString &title)
Sets the title to title.
See also title.
QString MediaPopupElement::title() const
Returns a string value indicating what the element represents. The value can be an empty string.
See also setTitle().