Skip To Content ArcGIS for Developers Sign In Dashboard

PopupMediaValue Class

(Esri::ArcGISRuntime::PopupMediaValue)

Contents of an individual media element in a popup. More...

Header: #include <PopupMediaValue>
Since: Esri::ArcGISRuntime 100.0
Inherits: Object

Public Functions

PopupMediaValue(QObject *parent = nullptr)
~PopupMediaValue()
QStringList fieldNames() const
QUrl linkUrl() const
QString normalizeFieldName() const
void setFieldNames(const QStringList &fieldNames)
void setLinkUrl(const QUrl &linkUrl)
void setNormalizeFieldName(const QString &normalizeFieldName)
void setSourceUrl(const QUrl &sourceUrl)
void setTooltipFieldName(const QString &tooltipFieldName)
QUrl sourceUrl() const
QString tooltipFieldName() const
  • 31 public functions inherited from QObject

Additional Inherited Members

Detailed Description

Contents of an individual media element in a popup.

Member Function Documentation

PopupMediaValue::PopupMediaValue(QObject *parent = nullptr)

Default constructor that takes an optional parent.

PopupMediaValue::~PopupMediaValue()

Destructor.

QStringList PopupMediaValue::fieldNames() const

Returns the GeoElement's fields (attributes) whose values should be displayed in the chart.

Only applicable if media is a chart.

See also setFieldNames().

QUrl PopupMediaValue::linkUrl() const

Returns the URL that defines which web address the image links to.

Only applicable is media is an image.

See also setLinkUrl().

QString PopupMediaValue::normalizeFieldName() const

Returns the GeoElement's field (attribute) whose value should be used to normalize values of fields.

Only applicable if media is a chart.

See also setNormalizeFieldName().

void PopupMediaValue::setFieldNames(const QStringList &fieldNames)

Sets the GeoElement's fieldNames (attributes) whose values should be displayed in the chart.

Only applicable if media is a chart.

See also fieldNames().

void PopupMediaValue::setLinkUrl(const QUrl &linkUrl)

Sets the linkUrl that defines which web address the image links to.

Only applicable is media is an image.

See also linkUrl().

void PopupMediaValue::setNormalizeFieldName(const QString &normalizeFieldName)

Sets the GeoElement's normalizeFieldName whose value should be used to normalize values of fields.

For example, if one field is Total Population, and another is Area, you may want to normalize Total Population by Area to see the population density.

Only applicable if media is a chart.

See also normalizeFieldName().

void PopupMediaValue::setSourceUrl(const QUrl &sourceUrl)

Sets the image's source URL to sourceUrl.

Only applicable is media is an image.

See also sourceUrl().

void PopupMediaValue::setTooltipFieldName(const QString &tooltipFieldName)

Sets the GeoElement's tooltipFieldName whose value should be used to display a tooltip for sections of the chart.

Only applicable if media is a chart.

See also tooltipFieldName().

QUrl PopupMediaValue::sourceUrl() const

Returns the image's source URL.

Only applicable if media is an image.

See also setSourceUrl().

QString PopupMediaValue::tooltipFieldName() const

Returns the GeoElement's field (attribute) whose value should be used to display a tooltip for sections of the chart.

Only applicable if media is a chart.

See also setTooltipFieldName().


Feedback on this topic?